response.php 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320
  1. <?php
  2. defined('BASEPATH') OR exit('No direct script access allowed');
  3. //通用 0000-0099
  4. $config['response']['0000'] = "操作成功";
  5. $config['response']['0001'] = "缺少username";
  6. $config['response']['0002'] = "缺少token";
  7. $config['response']['0003'] = "缺少client_key";
  8. $config['response']['0004'] = "登录信息已过期,请重新登录";
  9. $config['response']['0005'] = "非法请求";
  10. $config['response']['0006'] = "未查询到相关数据";
  11. $config['response']['0007'] = "缺少必要参数";
  12. $config['response']['0008'] = "服务器连接失败";
  13. $config['response']['0009'] = "数据库更新失败";
  14. $config['response']['0010'] = "命令下发失败";
  15. $config['response']['0011'] = "无权限操作";
  16. $config['response']['0012'] = "找不到文件";
  17. $config['response']['0013'] = "无访问权限";
  18. $config['response']['0014'] = "参数错误";
  19. $config['response']['0015'] = "上传失败";
  20. $config['response']['0016'] = "下发命令超时,请稍后重试";
  21. //登录 0100-0199
  22. $config['response']['0100'] = '用户名或密码不能为空';
  23. $config['response']['0101'] = '用户名或密码错误';
  24. $config['response']['0102'] = '用户不存在';
  25. $config['response']['0103'] = '账户已被停用,请联系管理员';
  26. $config['response']['0104'] = '同级用户不能修改账户状态';
  27. //项目 0200-0299
  28. $config['response']['0200'] = '项目id不能为空';
  29. $config['response']['0201'] = '项目编号已存在';
  30. $config['response']['0202'] = '该项目不存在';
  31. $config['response']['0203'] = '项目名称已存在';
  32. $config['response']['0204'] = '项目名称不能为空';
  33. $config['response']['0205'] = '项目编号不能为空';
  34. $config['response']['0206'] = '请选择区域';
  35. $config['response']['0207'] = '请选择省份';
  36. $config['response']['0208'] = '请选择时区';
  37. $config['response']['0209'] = '请选择公司';
  38. $config['response']['0210'] = '项目编号长度不能超过20位';
  39. $config['response']['0211'] = '项目名称长度不能超过40位';
  40. $config['response']['0212'] = '项目编号为数字或字母';
  41. $config['response']['0213'] = '命令已经下发,请稍后查看';
  42. $config['response']['0214'] = '请先删除项目下的设备';
  43. $config['response']['0215'] = '请先删除项目下的网关';
  44. //网络 0300-0399
  45. $config['response']['0300'] = '网络id不能为空';
  46. $config['response']['0301'] = '网络编号已存在';
  47. $config['response']['0302'] = '该网络不存在';
  48. $config['response']['0303'] = '网络名称已存在';
  49. $config['response']['0304'] = '协议类型为0-3';
  50. $config['response']['0305'] = '网络编号不能为空';
  51. $config['response']['0306'] = '网络名称不能为空';
  52. $config['response']['0307'] = '项目不能为空';
  53. $config['response']['0308'] = '请选择项目';
  54. $config['response']['0309'] = '网络编号为数字或字母';
  55. //灯控 0400-0499
  56. $config['response']['0400'] = '灯控id不能为空';
  57. $config['response']['0401'] = '灯控编号已存在';
  58. $config['response']['0402'] = '该灯控不存在';
  59. $config['response']['0403'] = '灯控名称已存在';
  60. $config['response']['0404'] = '无线模块地址已被使用';
  61. $config['response']['0405'] = '请选择网络';
  62. $config['response']['0406'] = '后台正在更新,请两分钟后重试';
  63. $config['response']['0407'] = '手动更新已经发送';
  64. $config['response']['0408'] = '路灯编号不能超过六位数';
  65. $config['response']['0409'] = '请填写路灯编号';
  66. $config['response']['0410'] = '路灯编号为1-999999的数字';
  67. $config['response']['0411'] = '请选择需要更新的路灯';
  68. $config['response']['0412'] = '路灯不在线';
  69. $config['response']['0413'] = '路灯已存在';
  70. $config['response']['0414'] = '无线模块地址必须为十六进制';
  71. $config['response']['0415'] = '协议类型选项错误';
  72. $config['response']['0416'] = '指令已下发,请稍后查看结果';
  73. $config['response']['0417'] = '获取参数信息失败,请稍后重试';
  74. $config['response']['0418'] = '选择日期不能超过31天';
  75. $config['response']['0419'] = '设备未绑定路段信息';
  76. $config['response']['0420'] = '只有杀虫灯设备能设置策略';
  77. $config['response']['0421'] = '经度范围错误';
  78. $config['response']['0422'] = '纬度范围错误';
  79. //报表 0500-0599
  80. $config['response']['0500'] = "type不正确";
  81. $config['response']['0501'] = "show_type不正确";
  82. $config['response']['0502'] = "缺少item_ids";
  83. //告警维修 0600-0699
  84. $config['response']['0601'] = "维修人员不存在";
  85. $config['response']['0602'] = "维修人员已经存在";
  86. $config['response']['0603'] = "请选择要删除的故障";
  87. $config['response']['0604'] = "请选择故障";
  88. $config['response']['0605'] = "维修人员id不能为空";
  89. $config['response']['0606'] = "维修人员名称不能为空";
  90. $config['response']['0607'] = "手机号码不能为空";
  91. $config['response']['0608'] = "请选择要删除维修人员";
  92. $config['response']['0609'] = "请选择要删除的记录";
  93. $config['response']['0610'] = "请选择维修人员";
  94. $config['response']['0611'] = "计划完成时间不能为空";
  95. $config['response']['0612'] = "开始时间不能为空";
  96. $config['response']['0613'] = "请选择需要维修的故障";
  97. $config['response']['0614'] = "请选择路灯";
  98. $config['response']['0615'] = "同一路灯半个小时之内只能调度一次";
  99. $config['response']['0616'] = "暂无数据,请在维修记录页面添加";
  100. $config['response']['0617'] = "维修人员id为1-999999的数字";
  101. //个人中心 0700-0799
  102. $config['response']['0701'] = "确认密码错误";
  103. $config['response']['0702'] = "密码错误";
  104. $config['response']['0703'] = "密码长度为6-12位";
  105. $config['response']['0704'] = "密码修改失败,请稍后重试!";
  106. $config['response']['0705'] = "上传失败!";
  107. $config['response']['0706'] = "账号已经存在";
  108. $config['response']['0707'] = "用户名称不能为空";
  109. $config['response']['0708'] = "登录账号不能为空";
  110. $config['response']['0709'] = "新密码与旧密码不能相同";
  111. $config['response']['0710'] = "请选择上一级区域";
  112. $config['response']['0711'] = "区域名称不能为空";
  113. $config['response']['0712'] = "请选择所属公司";
  114. $config['response']['0713'] = "请输入密码";
  115. $config['response']['0714'] = "姓名不能为空";
  116. $config['response']['0715'] = "联系方式不能为空";
  117. $config['response']['0716'] = "反馈内容不能为空";
  118. $config['response']['0717'] = "请选择权限";
  119. $config['response']['0718'] = "手机格式错误";
  120. $config['response']['0719'] = "邮箱格式错误";
  121. $config['response']['0720'] = "密码长度最少六位";
  122. $config['response']['0721'] = "手机号码已经存在";
  123. $config['response']['0722'] = "E-mail已经存在";
  124. $config['response']['0723'] = "登录账号长度不能超过20位";
  125. $config['response']['0724'] = "请选择用户类型";
  126. //监控 0800-0899
  127. $config['response']['0801'] = "监控名称已经存在";
  128. $config['response']['0802'] = "请选择路灯";
  129. $config['response']['0803'] = "监控名称不能为空";
  130. $config['response']['0804'] = "监控编号不能为空";
  131. $config['response']['0805'] = "无线模块地址不能为空";
  132. $config['response']['0806'] = "端口号不能为空";
  133. $config['response']['0807'] = "ip地址或域名不能为空";
  134. $config['response']['0808'] = "监控用户名不能为空";
  135. $config['response']['0809'] = "监控密码不能为空";
  136. $config['response']['0810'] = "请选择监控类型";
  137. $config['response']['0811'] = "通道不能为空";
  138. $config['response']['0812'] = "通道已被使用";
  139. $config['response']['0813'] = '监控编号为1-999999的数字';
  140. $config['response']['0814'] = '萤石云账号异常,请联系管理员';
  141. //策略分组 0900-0999
  142. $config['response']['0901'] = "策略名称已经存在";
  143. $config['response']['0902'] = "分组名称已经存在";
  144. $config['response']['0903'] = "缺少分组id";
  145. $config['response']['0904'] = "结束时间必须大于开始时间";
  146. $config['response']['0905'] = "结束日期必须大于开始日期";
  147. $config['response']['0906'] = "选择时间有重叠";
  148. $config['response']['0907'] = "选择日期有重叠";
  149. $config['response']['0908'] = "策略名称不能为空";
  150. $config['response']['0909'] = "策略内容不能为空";
  151. $config['response']['0910'] = "分组名称不能为空";
  152. $config['response']['0911'] = "请选择所属项目";
  153. $config['response']['0911'] = "请选择分组";
  154. $config['response']['0912'] = "请选择操作类型";
  155. $config['response']['0913'] = "请选择策略";
  156. $config['response']['0914'] = "请选择要删除的分组";
  157. // 英文版
  158. //通用 0000-0099
  159. $config['response_en']['0000'] = "Successful operation";
  160. $config['response_en']['0001'] = "Lack username";
  161. $config['response_en']['0002'] = "Lack token";
  162. $config['response_en']['0003'] = "Lack client_key";
  163. $config['response_en']['0004'] = "Login information has expired. Please login again";
  164. $config['response_en']['0005'] = "Unlawful request";
  165. $config['response_en']['0006'] = "No relevant data was querying";
  166. $config['response_en']['0007'] = "Missing necessary parameters";
  167. $config['response_en']['0008'] = "Server connection failure";
  168. $config['response_en']['0009'] = "Database update failed";
  169. $config['response_en']['0010'] = "Command failure";
  170. $config['response_en']['0011'] = "Delete failure";
  171. $config['response_en']['0012'] = "Upload failure";
  172. $config['response_en']['0013'] = "No authority";
  173. $config['response_en']['0014'] = 'The command is timed out, please try again later.';
  174. $config['response_en']['0015'] = 'Oversize Upload Files';
  175. $config['response_en']['0016'] = 'Error uploading file type';
  176. //登录 0100-0199
  177. $config['response_en']['0100'] = '用户名或密码不能为空';
  178. $config['response_en']['0101'] = '用户名或密码错误';
  179. $config['response_en']['0102'] = '用户不存在';
  180. $config['response_en']['0103'] = '账户已被停用,请联系管理员';
  181. $config['response_en']['0104'] = '同级用户不能修改账户状态';
  182. //项目 0200-0299
  183. $config['response_en']['0200'] = '项目id不能为空';
  184. $config['response_en']['0201'] = '项目编号已存在';
  185. $config['response_en']['0202'] = '该项目不存在';
  186. $config['response_en']['0203'] = '项目名称已存在';
  187. $config['response_en']['0204'] = '项目名称不能为空';
  188. $config['response_en']['0205'] = '项目编号不能为空';
  189. $config['response_en']['0206'] = '请选择区域';
  190. $config['response_en']['0207'] = '请选择省份';
  191. $config['response_en']['0208'] = '请选择时区';
  192. $config['response_en']['0209'] = '请选择公司';
  193. $config['response_en']['0210'] = '项目编号长度不能超过20位';
  194. $config['response_en']['0211'] = '项目名称长度不能超过40位';
  195. $config['response_en']['0212'] = '项目编号为数字或字母';
  196. $config['response_en']['0213'] = '命令已经下发,请稍后查看';
  197. $config['response_en']['0214'] = '请先删除项目下的设备';
  198. $config['response_en']['0215'] = '请先删除项目下的网关';
  199. //网络 0300-0399
  200. $config['response_en']['0300'] = '网络id不能为空';
  201. $config['response_en']['0301'] = '网络编号已存在';
  202. $config['response_en']['0302'] = '该网络不存在';
  203. $config['response_en']['0303'] = '网络名称已存在';
  204. $config['response_en']['0304'] = '协议类型为0-3';
  205. $config['response_en']['0305'] = '网络编号不能为空';
  206. $config['response_en']['0306'] = '网络名称不能为空';
  207. $config['response_en']['0307'] = '项目不能为空';
  208. $config['response_en']['0308'] = '请选择项目';
  209. $config['response_en']['0309'] = '网络编号为数字或字母';
  210. //灯控 0400-0499
  211. $config['response_en']['0400'] = '灯控id不能为空';
  212. $config['response_en']['0401'] = '灯控编号已存在';
  213. $config['response_en']['0402'] = '该灯控不存在';
  214. $config['response_en']['0403'] = '灯控名称已存在';
  215. $config['response_en']['0404'] = '无线模块地址已被使用';
  216. $config['response_en']['0405'] = '请选择网络';
  217. $config['response_en']['0406'] = '后台正在更新,请两分钟后重试';
  218. $config['response_en']['0407'] = '手动更新已经发送';
  219. $config['response_en']['0408'] = '路灯编号不能超过六位数';
  220. $config['response_en']['0409'] = '请填写路灯编号';
  221. $config['response_en']['0410'] = '路灯编号为1-999999的数字';
  222. $config['response_en']['0411'] = '请选择需要更新的路灯';
  223. $config['response_en']['0412'] = '路灯不在线';
  224. $config['response_en']['0413'] = '路灯已存在';
  225. $config['response_en']['0414'] = '无线模块地址必须为十六进制';
  226. $config['response_en']['0415'] = '协议类型选项错误';
  227. $config['response_en']['0416'] = '指令已下发,请稍后查看结果';
  228. $config['response_en']['0417'] = '获取参数信息失败,请稍后重试';
  229. $config['response_en']['0418'] = '选择日期不能超过31天';
  230. $config['response_en']['0419'] = '设备未绑定路段信息';
  231. $config['response_en']['0420'] = '只有杀虫灯设备能设置策略';
  232. $config['response_en']['0421'] = '经度范围错误';
  233. $config['response_en']['0422'] = '纬度范围错误';
  234. //报表 0500-0599
  235. $config['response_en']['0500'] = "type不正确";
  236. $config['response_en']['0501'] = "show_type不正确";
  237. $config['response_en']['0502'] = "缺少item_ids";
  238. //告警维修 0600-0699
  239. $config['response_en']['0601'] = "维修人员不存在";
  240. $config['response_en']['0602'] = "维修人员已经存在";
  241. $config['response_en']['0603'] = "请选择要删除的故障";
  242. $config['response_en']['0604'] = "请选择故障";
  243. $config['response_en']['0605'] = "维修人员id不能为空";
  244. $config['response_en']['0606'] = "维修人员名称不能为空";
  245. $config['response_en']['0607'] = "手机号码不能为空";
  246. $config['response_en']['0608'] = "请选择要删除维修人员";
  247. $config['response_en']['0609'] = "请选择要删除的记录";
  248. $config['response_en']['0610'] = "请选择维修人员";
  249. $config['response_en']['0611'] = "计划完成时间不能为空";
  250. $config['response_en']['0612'] = "开始时间不能为空";
  251. $config['response_en']['0613'] = "请选择需要维修的故障";
  252. $config['response_en']['0614'] = "请选择路灯";
  253. $config['response_en']['0615'] = "同一路灯半个小时之内只能调度一次";
  254. $config['response_en']['0616'] = "暂无数据,请在维修记录页面添加";
  255. $config['response_en']['0617'] = "维修人员id为1-999999的数字";
  256. //个人中心 0700-0799
  257. $config['response_en']['0701'] = "确认密码错误";
  258. $config['response_en']['0702'] = "密码错误";
  259. $config['response_en']['0703'] = "密码长度为6-12位";
  260. $config['response_en']['0704'] = "密码修改失败,请稍后重试!";
  261. $config['response_en']['0705'] = "上传失败!";
  262. $config['response_en']['0706'] = "账号已经存在";
  263. $config['response_en']['0707'] = "用户名称不能为空";
  264. $config['response_en']['0708'] = "登录账号不能为空";
  265. $config['response_en']['0709'] = "新密码与旧密码不能相同";
  266. $config['response_en']['0710'] = "请选择上一级区域";
  267. $config['response_en']['0711'] = "区域名称不能为空";
  268. $config['response_en']['0712'] = "请选择所属公司";
  269. $config['response_en']['0713'] = "请输入密码";
  270. $config['response_en']['0714'] = "姓名不能为空";
  271. $config['response_en']['0715'] = "联系方式不能为空";
  272. $config['response_en']['0716'] = "反馈内容不能为空";
  273. $config['response_en']['0717'] = "请选择权限";
  274. $config['response_en']['0718'] = "手机格式错误";
  275. $config['response_en']['0719'] = "邮箱格式错误";
  276. $config['response_en']['0720'] = "密码长度最少六位";
  277. $config['response_en']['0721'] = "手机号码已经存在";
  278. $config['response_en']['0722'] = "E-mail已经存在";
  279. $config['response_en']['0723'] = "登录账号长度不能超过20位";
  280. $config['response_en']['0724'] = "请选择用户类型";
  281. //监控 0800-0899
  282. $config['response_en']['0801'] = "监控名称已经存在";
  283. $config['response_en']['0802'] = "请选择路灯";
  284. $config['response_en']['0803'] = "监控名称不能为空";
  285. $config['response_en']['0804'] = "监控编号不能为空";
  286. $config['response_en']['0805'] = "无线模块地址不能为空";
  287. $config['response_en']['0806'] = "端口号不能为空";
  288. $config['response_en']['0807'] = "ip地址或域名不能为空";
  289. $config['response_en']['0808'] = "监控用户名不能为空";
  290. $config['response_en']['0809'] = "监控密码不能为空";
  291. $config['response_en']['0810'] = "请选择监控类型";
  292. $config['response_en']['0811'] = "通道不能为空";
  293. $config['response_en']['0812'] = "通道已被使用";
  294. $config['response_en']['0813'] = '监控编号为1-999999的数字';
  295. $config['response_en']['0814'] = '萤石云账号异常,请联系管理员';
  296. //策略分组 0900-0999
  297. $config['response_en']['0901'] = "策略名称已经存在";
  298. $config['response_en']['0902'] = "分组名称已经存在";
  299. $config['response_en']['0903'] = "缺少分组id";
  300. $config['response_en']['0904'] = "结束时间必须大于开始时间";
  301. $config['response_en']['0905'] = "结束日期必须大于开始日期";
  302. $config['response_en']['0906'] = "选择时间有重叠";
  303. $config['response_en']['0907'] = "选择日期有重叠";
  304. $config['response_en']['0908'] = "策略名称不能为空";
  305. $config['response_en']['0909'] = "策略内容不能为空";
  306. $config['response_en']['0910'] = "分组名称不能为空";
  307. $config['response_en']['0911'] = "请选择所属项目";
  308. $config['response_en']['0911'] = "请选择分组";
  309. $config['response_en']['0912'] = "请选择操作类型";
  310. $config['response_en']['0913'] = "请选择策略";
  311. $config['response_en']['0914'] = "请选择要删除的分组";