response.php 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  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. $config['response']['0105'] = '请输入验证码';
  28. $config['response']['0106'] = '验证码已经过期';
  29. $config['response']['0107'] = '验证码错误';
  30. $config['response']['0108'] = '请输入登录账号';
  31. $config['response']['0109'] = '请输入邮箱地址';
  32. $config['response']['0110'] = '账号未绑定邮箱地址';
  33. $config['response']['0111'] = '请输入新密码';
  34. $config['response']['0112'] = '验证错误';
  35. $config['response']['0113'] = '新密码跟旧密码不能相同';
  36. // 区域管理 0200-0299
  37. $config['response']['0200'] = '未查询到房间';
  38. $config['response']['0201'] = '请选择区域';
  39. $config['response']['0202'] = '请填写酒店名称';
  40. $config['response']['0203'] = '酒店名称不能超过20位';
  41. $config['response']['0204'] = '酒店名称重复';
  42. $config['response']['0205'] = '请选择酒店';
  43. $config['response']['0206'] = '请填写楼层数';
  44. $config['response']['0207'] = '楼层数必须为大于1的整数';
  45. $config['response']['0208'] = '请填写楼房名称';
  46. $config['response']['0209'] = '楼房名称不能超过20位';
  47. $config['response']['0210'] = '楼房名称已经存在';
  48. $config['response']['0211'] = '请选择楼房';
  49. $config['response']['0212'] = '请填写房间编号';
  50. $config['response']['0213'] = '房间编号格式错误,只能填写字母或数字';
  51. $config['response']['0214'] = '房间编号长度不能超过20位';
  52. $config['response']['0215'] = '房间编号已经存在';
  53. $config['response']['0216'] = '请先删除酒店下的楼房';
  54. $config['response']['0217'] = '请先删除楼房里的房间';
  55. $config['response']['0218'] = '请先删除房间里的设备';
  56. $config['response']['0219'] = '请选择开始楼层';
  57. $config['response']['0220'] = '请选择结束楼层';
  58. $config['response']['0221'] = '结束楼层必须大于开始楼层';
  59. $config['response']['0222'] = '请先删除楼层中的房间';
  60. $config['response']['0223'] = '房间SN号不能为空';
  61. // 设备管理 0300-0399
  62. $config['response']['0300'] = '设备名称不能为空';
  63. $config['response']['0301'] = '设备名称不能超过20位';
  64. $config['response']['0302'] = '设备ID不能为空';
  65. $config['response']['0303'] = '请选择楼层';
  66. $config['response']['0304'] = '请选择房间';
  67. $config['response']['0305'] = '设备名称已经存在';
  68. $config['response']['0306'] = '设备ID已经存在';
  69. $config['response']['0307'] = '设备ID为1-255的整数';
  70. $config['response']['0308'] = '数据更新失败,请稍后重试';
  71. $config['response']['0309'] = '设备编号已经存在';
  72. $config['response']['0310'] = '请填写设备编号';
  73. $config['response']['0311'] = '请选择新建设备';
  74. $config['response']['0312'] = '请填写列数';
  75. $config['response']['0313'] = '请先复制需要拷贝的设备';
  76. $config['response']['0314'] = '请先选择需要删除的设备';
  77. $config['response']['0315'] = '删除设备失败,请稍后重试';
  78. $config['response']['0316'] = '绑定设备失败,请稍后重试';
  79. $config['response']['0317'] = '设备未绑定网关';
  80. $config['response']['0318'] = '设备不存在';
  81. $config['response']['0319'] = '色温值范围错误';
  82. $config['response']['0320'] = '设备不支持';
  83. $config['response']['0321'] = '设备已关闭';
  84. $config['response']['0322'] = '设备不在线';
  85. $config['response']['0323'] = '文件名已经存在';
  86. $config['response']['0324'] = '未检测到设备版本信息,请尝试重新绑定设备';
  87. $config['response']['0325'] = '设备不支持';
  88. $config['response']['0326'] = '房间未绑定sensor设备';
  89. $config['response']['0327'] = '自动模式AQI值范围错误';
  90. // 用户管理 0400-0499
  91. $config['response']['0400'] = '名称不能为空';
  92. $config['response']['0401'] = '账号名称不能为空';
  93. $config['response']['0402'] = '账号名称必须为字母、数字或下划线组成';
  94. $config['response']['0403'] = '账号名称不能超过20位';
  95. $config['response']['0404'] = '名称已经存在';
  96. $config['response']['0405'] = '账号名称已经存在';
  97. $config['response']['0406'] = '手机号码格式错误';
  98. $config['response']['0407'] = '邮箱格式错误';
  99. $config['response']['0408'] = '密码不能为空';
  100. $config['response']['0409'] = '密码长度为6-16位';
  101. $config['response']['0410'] = '旧密码不能为空';
  102. $config['response']['0411'] = '新密码不能为空';
  103. $config['response']['0412'] = '确认密码错误';
  104. $config['response']['0413'] = '确认密码不能为空';
  105. $config['response']['0414'] = '旧密码错误';
  106. $config['response']['0415'] = '该人员已经存在';
  107. // 网关管理 0500-0599
  108. $config['response']['0500'] = '房间已经绑定填写的网关';
  109. $config['response']['0501'] = '网关ID已经存在';
  110. $config['response']['0502'] = '请先移除网关下的设备';
  111. $config['response']['0503'] = '未上传固件版本,请联系管理员';
  112. $config['response']['0504'] = '网关正在升级';
  113. // 故障管理 0600-0699
  114. $config['response']['0600'] = '故障还未处理,不能删除';
  115. $config['response']['0601'] = '手机号码不能为空';
  116. $config['response']['0602'] = '邮箱地址不能为空';
  117. $config['response']['0603'] = '手机号码已经存在';
  118. $config['response']['0604'] = '邮箱地址已经存在';
  119. // 英文版
  120. //通用 0000-0099
  121. $config['response_en']['0000'] = "Successful operation";
  122. $config['response_en']['0001'] = "Lack username";
  123. $config['response_en']['0002'] = "Lack token";
  124. $config['response_en']['0003'] = "Lack client_key";
  125. $config['response_en']['0004'] = "Login information has expired. Please login again";
  126. $config['response_en']['0005'] = "Unlawful request";
  127. $config['response_en']['0006'] = "No relevant data was querying";
  128. $config['response_en']['0007'] = "Missing necessary parameters";
  129. $config['response_en']['0008'] = "Server connection failure";
  130. $config['response_en']['0009'] = "Database update failed";
  131. $config['response_en']['0010'] = "Command failure";
  132. $config['response_en']['0011'] = "Delete failure";
  133. $config['response_en']['0012'] = "Upload failure";
  134. $config['response_en']['0013'] = "No authority";
  135. $config['response_en']['0014'] = 'The command is timed out, please try again later.';
  136. $config['response_en']['0015'] = 'Oversize Upload Files';
  137. $config['response_en']['0016'] = 'Error uploading file type';
  138. //登录 0100-0199
  139. $config['response_en']['0100'] = 'The user name or password can not be empty';
  140. $config['response_en']['0101'] = 'ERROR Incorrect username or password';
  141. $config['response_en']['0102'] = 'User does not exist';
  142. $config['response_en']['0103'] = 'Account disabled';
  143. $config['response_en']['0104'] = 'User name can not be empty';
  144. $config['response_en']['0105'] = 'Please enter the verification code';
  145. $config['response_en']['0106'] = 'The verification code has expired';
  146. $config['response_en']['0107'] = 'Verification code error';
  147. $config['response_en']['0108'] = 'Please enter the login account';
  148. $config['response_en']['0109'] = 'Please enter email address';
  149. $config['response_en']['0110'] = 'Account is not bound to email address';
  150. $config['response_en']['0111'] = 'Please enter a new password';
  151. $config['response_en']['0112'] = 'Verification error';
  152. $config['response_en']['0113'] = 'The new password cannot be the same as the old password';
  153. // 区域管理 0200-0299
  154. $config['response_en']['0200'] = 'Room not found';
  155. $config['response_en']['0201'] = 'Please select area';
  156. $config['response_en']['0202'] = 'Please fill in the hotel name';
  157. $config['response_en']['0203'] = 'No more than 20 Hotel Names';
  158. $config['response_en']['0204'] = 'Duplicate hotel name';
  159. $config['response_en']['0205'] = 'Please select a hotel';
  160. $config['response_en']['0206'] = 'Please fill in the floor';
  161. $config['response_en']['0207'] = 'Number of floors must be an integer greater than 1';
  162. $config['response_en']['0208'] = 'Please fill in the building name';
  163. $config['response_en']['0209'] = 'Building name cannot exceed 20';
  164. $config['response_en']['0210'] = 'Building name already exists';
  165. $config['response_en']['0211'] = 'Please select a building';
  166. $config['response_en']['0212'] = 'Please fill in the room number';
  167. $config['response_en']['0213'] = 'Wrong room number format, only letters or numbers can be filled in';
  168. $config['response_en']['0214'] = 'Room number length cannot exceed 20 digits';
  169. $config['response_en']['0215'] = 'Room number already exists';
  170. $config['response_en']['0216'] = 'Please delete the building under the hotel first';
  171. $config['response_en']['0217'] = 'Please delete the rooms in the building first';
  172. $config['response_en']['0218'] = 'Please delete the equipment in the room first';
  173. $config['response_en']['0219'] = 'Please select the start floor';
  174. $config['response_en']['0220'] = 'Please select the close floor';
  175. $config['response_en']['0221'] = 'The end floor must be greater than the beginning floor';
  176. $config['response_en']['0222'] = 'Please delete the room on the floor first';
  177. $config['response_en']['0223'] = 'Room Sn number cannot be empty';
  178. // 灯控设备管理 0300-0399
  179. $config['response_en']['0300'] = 'Device name cannot be empty';
  180. $config['response_en']['0301'] = 'Device name cannot exceed 20 digits';
  181. $config['response_en']['0302'] = 'Device ID cannot be empty';
  182. $config['response_en']['0303'] = 'Please select a floor';
  183. $config['response_en']['0304'] = 'Please select a room';
  184. $config['response_en']['0305'] = 'Device name already exists';
  185. $config['response_en']['0306'] = 'Device ID already exists';
  186. $config['response_en']['0307'] = 'Integer with device ID 1-255';
  187. $config['response_en']['0308'] = 'Data update failed, please try again later';
  188. $config['response_en']['0309'] = 'Device number already exists';
  189. $config['response_en']['0310'] = 'Please fill in the equipment number';
  190. $config['response_en']['0311'] = 'Please select a new device';
  191. $config['response_en']['0312'] = 'Please fill in the number of columns';
  192. $config['response_en']['0313'] = 'Please copy the device to be copied first';
  193. $config['response_en']['0314'] = 'Please select the device to be deleted first';
  194. $config['response_en']['0315'] = 'Failed to delete device, please try again later';
  195. $config['response_en']['0316'] = 'Failed to bind device, please try again later';
  196. $config['response_en']['0317'] = 'Device not bound to gateway';
  197. $config['response_en']['0318'] = 'Device does not exist';
  198. $config['response_en']['0319'] = 'Color temperature value range error';
  199. $config['response_en']['0320'] = 'Device does not support';
  200. $config['response_en']['0321'] = 'Device is off';
  201. $config['response_en']['0322'] = 'Device not online';
  202. $config['response_en']['0323'] = 'File name already exists';
  203. $config['response_en']['0324'] = 'Device version information not detected, try rebinding device';
  204. $config['response_en']['0325'] = 'Device not supported';
  205. $config['response_en']['0326'] = 'Sensor device is not bound to the room';
  206. $config['response_en']['0327'] = 'Automatic mode AQI value range error';
  207. // 用户管理 0400-0499
  208. $config['response_en']['0400'] = 'Name cannot be empty';
  209. $config['response_en']['0401'] = 'Account name cannot be empty';
  210. $config['response_en']['0402'] = 'Account name must be composed of letters, numbers or underscores';
  211. $config['response_en']['0403'] = 'Account name cannot exceed 20 digits';
  212. $config['response_en']['0404'] = 'Name already exists';
  213. $config['response_en']['0405'] = 'Account name already exists';
  214. $config['response_en']['0406'] = 'Mobile number format error';
  215. $config['response_en']['0407'] = 'Mailbox format error';
  216. $config['response_en']['0408'] = 'Password cannot be empty';
  217. $config['response_en']['0409'] = 'Password length is 6-16 bits';
  218. $config['response_en']['0410'] = 'Old password cannot be empty';
  219. $config['response_en']['0411'] = 'New password cannot be empty';
  220. $config['response_en']['0412'] = 'Confirm password error';
  221. $config['response_en']['0413'] = 'Confirm password cannot be empty';
  222. $config['response_en']['0414'] = 'Old password error';
  223. $config['response_en']['0415'] = 'The person already exists';
  224. // 网关管理 0500-0599
  225. $config['response_en']['0500'] = 'The room has been bound to the gateway you filled in';
  226. $config['response_en']['0501'] = 'Gateway ID already exists';
  227. $config['response_en']['0502'] = 'Please remove the device under the gateway first';
  228. $config['response_en']['0503'] = 'Firmware version not uploaded, please contact administrator';
  229. $config['response_en']['0504'] = 'Gateway upgrading';
  230. // 故障管理 0600-0699
  231. $config['response_en']['0600'] = 'The fault has not been handled and cannot be deleted';
  232. $config['response_en']['0601'] = 'Mobile number cannot be empty';
  233. $config['response_en']['0602'] = 'Email address cannot be empty';
  234. $config['response_en']['0603'] = 'Mobile number already exists';
  235. $config['response_en']['0604'] = 'Email address already exists';