wzh 5 tahun lalu
induk
melakukan
cf95981bbb

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

@@ -4006,12 +4006,12 @@ class Lampcontrol extends Base_Controller {
                 "network_id" => $res["networkid"],
                 'status' => $res['status'],
                 'batterytype' => $res['batterytype'],
-                'devicetype' => $res['devicetype'],
-                'protocoltype'=>$res['protocoltype'],
+                'devicetype' => intval($res['devicetype']),
+                'protocoltype'=>intval($res['protocoltype']),
                 "simid" => empty($res["simid"]) ? '' : $res["simid"], 
                 "packageSurplus" => $res["packageSurplus"], 
                 "updatetime" => $res["updatetime"], 
-                "lampprotocoltype" => $res['lampprotocoltype'],
+                "lampprotocoltype" => intval($res['lampprotocoltype']),
                 'loadtype' => $res['loadtype']
             );
             $msisdn = $this->db->query('select iccid from msisdn where imsi = "'.$res['simid'].'"')->row_array();

+ 1 - 0
api/application/helpers/function_helper.php

@@ -441,6 +441,7 @@ function get_jwt_token(){
 
 //发送命令到server
 function send_cmd($cmd, $timeout = 30, $ms_timeout = 200) {
+    return false;
 	$CI =& get_instance();
 	$host = $CI->config->item('cmd_server');
 	$ip = $host['ip'];