소스 검색

no message

MS-PDRLKVHCADMG\Administrator 5 년 전
부모
커밋
a8ce5ee824
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      api/application/controllers/Lampcontrol.php

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

@@ -1239,7 +1239,7 @@ class Lampcontrol extends Base_Controller {
         }
         if ($datatype == 'lampinfo') {
 
-            $fields = "number,projectid,address,longitude,latitude,section,boardpower,lamptype,boardtype,batteryah,loadpower,devstatus,loadtype,supplier,upazilla,po,manu,protocoltype,updatetime,status,power,model,fascal_year,fascal_year_phase";
+            $fields = "number,projectid,address,longitude,latitude,section,boardpower,lamptype,boardtype,batteryah,loadpower,devstatus,loadtype,supplier,upazilla,po,manu,protocoltype,updatetime,status,power,model,fascal_year,fascal_year_phase,iccid";
 
             $res = $this->Lamp_model->get_one(['id'=>$lamp_id],$fields);
             if (empty($res)) {
@@ -1315,6 +1315,7 @@ class Lampcontrol extends Base_Controller {
                 'model' => $res['model'],
                 'fascal_year' => $res['fascal_year'],
                 'fascal_year_phase' => $res['fascal_year_phase'],
+                'iccid' => $res['iccid'],
             );
             // $msisdn = $this->db->query('select iccid from msisdn where imsi = "'.$res['simid'].'"')->row_array();
             // if (empty($msisdn) || empty($msisdn['iccid'])) {