소스 검색

no message

wzh 5 년 전
부모
커밋
9ee163e0bd
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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);