wzh 5 yıl önce
ebeveyn
işleme
eab79c2f3d
1 değiştirilmiş dosya ile 3 ekleme ve 3 silme
  1. 3 3
      api/application/controllers/Lampcontrol.php

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

@@ -442,9 +442,9 @@ class Lampcontrol extends Base_Controller {
         // $res = $this->Lamp_model->get_list_by_multi_join($filter, 'count(*) total',$limit, $offset, $join, "L.number ASC", NUll, 'L',true);
         // $result = !empty($pid_arr) ? $this->Lamp_model->get_count(['projectid'=>$pid_arr]) : array();
 
-        $result = $this->Lamp_model->get_count(['projectid'=>$pid_arr]);
-        $data['total'] = $result;
-        $data['count'] = $result;
+        // $result = $this->Lamp_model->get_count(['projectid'=>$pid_arr]);
+        $data['total'] = $data['total_data']['install_num'];
+        $data['count'] = $data['total_data']['install_num'];
         // $data['fault'] = $res['total'];
         exit(json_result('0000', $this->response['0000'], $data));
     }