Browse Source

no message

DESKTOP-9JTA2JJ\HP 5 years ago
parent
commit
96d5654735

+ 2 - 2
api/application/config/response.php

@@ -63,7 +63,7 @@ $config['response']['0402'] = '该灯控不存在';
 $config['response']['0403'] = '灯控名称已存在';
 $config['response']['0404'] = '无线模块地址已被使用';
 $config['response']['0405'] = '请选择网络';
-$config['response']['0406'] = '后台正在更新,请两分钟后重试';
+$config['response']['0406'] = '数据更新中';
 $config['response']['0407'] = '手动更新已经发送';
 $config['response']['0408'] = '路灯编号不能超过六位数';
 $config['response']['0409'] = '请填写路灯编号';
@@ -229,7 +229,7 @@ $config['response_en']['0402'] = 'The light control does not exist';
 $config['response_en']['0403'] = 'The light control name already exists';
 $config['response_en']['0404'] = 'Wireless module address is in use';
 $config['response_en']['0405'] = 'Please select a network';
-$config['response_en']['0406'] = 'Background is updating. Please try again in two minutes';
+$config['response_en']['0406'] = 'Data updating';
 $config['response_en']['0407'] = 'Manual update sent';
 $config['response_en']['0408'] = 'Street lamp number cannot exceed six digits';
 $config['response_en']['0409'] = 'Please fill in the street lamp number';

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

@@ -432,12 +432,7 @@ class Lampcontrol extends Base_Controller {
 
         }
         sleep(2);
-        if ($status) {
-            exit(json_result('0406', $this->response['0406'], array()));
-        }else{
-            exit(json_result('0407', $this->response['0407'], array()));
-        }
-
+        exit(json_result('0406', $this->response['0406'], array()));
     }
 
     // 灯控的开启/关闭(支持批量处理)