From 0c4b798032fd08f562570201c0ae6ba1d040cfba Mon Sep 17 00:00:00 2001
From: colly_wyx <wangyixiong_007@163.com>
Date: Mon, 23 Apr 2018 16:01:41 +0800
Subject: [PATCH] 添加测试日志

---
 Yfs/Domain/Data.php |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Yfs/Domain/Data.php b/Yfs/Domain/Data.php
index bed4e47..0a76dd5 100644
--- a/Yfs/Domain/Data.php
+++ b/Yfs/Domain/Data.php
@@ -25,13 +25,13 @@
             $arr['value'] = $value['value'];
             $arr['create_time'] = $value['time'];
             $arr['date'] = date('Y-m-d', strtotime($value['time']));
-            if($data['type'] == 0){
+            if($value['type'] == 0){
                 $this->model->add($arr);
-                if($arr['is_warn'] == 1){
+                if($value['is_warn'] == 1){
                     $this->warn_model->add($arr);
                 }
             }
-            elseif($data['type'] == 1){
+            elseif($value['type'] == 1){
                 $this->hourly_model->add($arr);
             }
             if(isset($arr['_id']))

--
Gitblit v1.8.0