MS-PDRLKVHCADMG\Administrator 5 年 前
コミット
4aa27bbd55
1 ファイル変更2 行追加0 行削除
  1. 2 0
      api/application/controllers/Lampcontrol.php

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

@@ -1308,6 +1308,7 @@ class Lampcontrol extends Base_Controller {
             $timezone = $this->Project_model->get_timezone_by_projectid($res['projectid']);
             $res["updatetime"] = date_change($res["updatetime"],0,DEF_TIMEZONE);
 
+            $projectname = $this->Project_model->get_one(['id'=>$res['projectid']],'projectname');
             $data = array(
                 "lamp_no" => $res["number"], 
                 "project_name" => $this->Project_model->getNameById($res["projectid"]), 
@@ -1335,6 +1336,7 @@ class Lampcontrol extends Base_Controller {
                 'fascal_year' => $res['fascal_year'],
                 'fascal_year_phase' => $res['fascal_year_phase'],
                 'iccid' => $res['iccid'],
+                'projectname' => $projectname['projectname'],
             );
             // $msisdn = $this->db->query('select iccid from msisdn where imsi = "'.$res['simid'].'"')->row_array();
             // if (empty($msisdn) || empty($msisdn['iccid'])) {