MS-CGGBQLOTBCKH\Administrator před 5 roky
rodič
revize
7a05f7672b
1 změnil soubory, kde provedl 8 přidání a 1 odebrání
  1. 8 1
      api/application/controllers/Lampcontrol.php

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

@@ -891,6 +891,10 @@ class Lampcontrol extends Base_Controller {
         $data['model'] = intval($this->input->post('model',true));
         $data['power'] = intval($this->input->post('power',true));
 
+        $data['customer_ID'] = $this->input->post('customer_ID',true);
+        $data['street_light_SN'] = $this->input->post('street_light_SN',true);
+        $data['customer_name'] = $this->input->post('customer_name',true);
+        
 
         $loadtype = $this->input->post('loadtype',true);
         if ($loadtype !== null) {
@@ -1267,7 +1271,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,iccid,softwareVersion";
+            $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,softwareVersion,customer_ID,street_light_SN,customer_name";
 
             $res = $this->Lamp_model->get_one(['id'=>$lamp_id],$fields);
             if (empty($res)) {
@@ -1364,6 +1368,9 @@ class Lampcontrol extends Base_Controller {
                 'projectname' => $projectname['projectname'],
                 'projectid' => $res['projectid'],
                 'softwareVersion' => $res['softwareVersion'],
+                'street_light_SN' => $res['street_light_SN'],
+                'customer_ID' => $res['customer_ID'],
+                'customer_name' => $res['customer_name'],
                 'supplier_name' => $supplier_name,
                 'model_name' => $model_name,
             );