wzh hace 5 años
padre
commit
9ee163e0bd
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      api/application/controllers/Lampcontrol.php

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

@@ -1483,7 +1483,7 @@ class Lampcontrol extends Base_Controller {
 
             exit(json_result('0000', $this->response['0000'], $data));
         }elseif ($datatype == 'lamp_info_log') {
-            $fields = "lighteness,lampvoltage,lampcurrent,loadpower,updatetime";
+            $fields = "lighteness,lampvoltage,lampcurrent,lamppower as loadpower,updatetime";
 
             $res = $this->Lamp_model->get_one(['id'=>$lamp_id],$fields);
             $res["updatetime"] = date_change($res["updatetime"],0,DEF_TIMEZONE);