Browse Source

no message

MS-PDRLKVHCADMG\Administrator 5 năm trước cách đây
mục cha
commit
5c9b1fd8f6
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      api/application/controllers/Lampcontrol.php

+ 1 - 1
api/application/controllers/Lampcontrol.php

@@ -2020,7 +2020,7 @@ class Lampcontrol extends Base_Controller {
             }
             $list = $temp;
         }else{  // 电量
-            $sql = 'select daychargeah,daydischarah,updatetime from battery_info_log where lampid = '.$lampId.' and updatetime >= "'.$beginDate.'" and updatetime <= "'.$endDate.'"';
+            $sql = 'select daychargeah,daydischarah,updatetime from realtime_info_log where lampid = '.$lampId.' and updatetime >= "'.$beginDate.'" and updatetime <= "'.$endDate.'"';
             $list = $this->db->query($sql)->result_array();
             $temp = [];
             foreach ($list as $value) {