likang %!s(int64=2) %!d(string=hai) anos
pai
achega
166652b160
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      catch/tag_history/controller/TagHistory.php

+ 3 - 2
catch/tag_history/controller/TagHistory.php

@@ -64,7 +64,7 @@ class TagHistory extends CatchController
             $where[] = ['mac', 'in',  implode(",", $mac)];
         }
         if (!empty($tage)) {
-            $where[] = ['lable', 'in',  implode(",", $tage)];
+            $where[] = ['lable', 'in',  implode(",", $tage)];   
         }
         if ($endtime == 1) {
             //生成报告
@@ -113,7 +113,8 @@ class TagHistory extends CatchController
             $where[] = ['lable', 'in', "000080000001,000080000002,0000F6000003,0000F6000004,0000F6000005"];
         }
 
-        $list = $this->tagHistoryModel->group('mac,lable')->where('addTime','>',strtotime(date('Y-d-m')))->where($where)
+
+        $list = $this->tagHistoryModel->group('mac,lable')->where('addTime','>',strtotime("-4 hour"))->where($where)
             ->field('mac,lable')->select()->toArray();
        
         foreach ($list as $key => $value) {