广告平台(站长使用)
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

před 4 měsíci
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  1. package e
  2. const (
  3. // 200 因为部分第三方接口不能返回错误头,因此在此定义部分错误
  4. ERR_FILE_SAVE = 200001
  5. // 400 系列
  6. ERR_BAD_REQUEST = 400000
  7. ERR_INVALID_ARGS = 400001
  8. ERR_API_RESPONSE = 400002
  9. ERR_NO_DATA = 400003
  10. ERR_MOBILE_NIL = 400004
  11. ERR_MOBILE_MATH = 400005
  12. ERR_FILE_EXT = 400006
  13. ERR_FILE_MAX_SIZE = 400007
  14. ERR_SIGN = 400008
  15. ERR_PASSWORD_MATH = 400009
  16. ERR_PROVIDER_RESPONSE = 400010
  17. ERR_AES_ENCODE = 400011
  18. ERR_ADMIN_API = 400012
  19. ERR_QINIUAPI_RESPONSE = 400013
  20. ERR_URL_TURNCHAIN = 400014
  21. // 401 未授权
  22. ERR_UNAUTHORIZED = 401000
  23. ERR_NOT_AUTH = 401001
  24. ERR_SMS_AUTH = 401002
  25. ERR_TOKEN_AUTH = 401003
  26. ERR_TOKEN_FORMAT = 401004
  27. ERR_TOKEN_GEN = 401005
  28. ERR_CACHE_SET = 401006
  29. // 403 禁止
  30. ERR_FORBIDEN = 403000
  31. ERR_PLATFORM = 403001
  32. ERR_MOBILE_EXIST = 403002
  33. ERR_USER_NO_EXIST = 403003
  34. ERR_MOBILE_NO_EXIST = 403004
  35. ERR_FORBIDEN_VALID = 403005
  36. ERR_RELATE_ERR = 403006
  37. ERR_REPEAT_RELATE = 403007
  38. ERR_MOB_FORBIDEN = 403008
  39. ERR_MOB_SMS_NO_AVA = 403009
  40. ERR_USER_IS_REG = 403010
  41. ERR_MASTER_ID = 403011
  42. ERR_CASH_OUT_TIME = 403012
  43. ERR_CASH_OUT_FEE = 403013
  44. ERR_CASH_OUT_USER_NOT_FOUND = 403014
  45. ERR_CASH_OUT_FAIL = 403015
  46. ERR_CASH_OUT_TIMES = 403016
  47. ERR_CASH_OUT_MINI = 403017
  48. ERR_CASH_OUT_MUT = 403018
  49. ERR_CASH_OUT_NOT_DECIMAL = 403019
  50. ERR_CASH_OUT_NOT_DAY_AVA = 403020
  51. ERR_USER_LEVEL_PAY_CHECK_TASK_NO_DONE = 403021
  52. ERR_USER_LEVEL_PAY_CHECK_NO_CROSS = 403022
  53. ERR_USER_LEVEL_ORD_EXP = 403023
  54. ERR_IS_BIND_THIRDPARTY = 403024
  55. ERR_USER_LEVEL_UPDATE_CHECK_TASK_NO_DONE = 403025
  56. ERR_USER_LEVEL_UPDATE_CHECK_NOT_FOUND_ORDER = 403026
  57. ERR_USER_LEVEL_UPDATE_REPEAT = 403027
  58. ERR_USER_NO_ACTIVE = 403028
  59. ERR_USER_IS_BAN = 403029
  60. ERR_ALIPAY_SETTING = 403030
  61. ERR_ALIPAY_ORDERTYPE = 403031
  62. ERR_CLIPBOARD_UNSUP = 403032
  63. ERR_SYSUNION_CONFIG = 403033
  64. ERR_WECAHT_MINI = 403034
  65. ERR_WECAHT_MINI_CACHE = 403035
  66. ERR_WECAHT_MINI_DECODE = 403036
  67. ERR_WECHAT_MINI_ACCESSTOKEN = 403037
  68. ERR_CURRENT_VIP_LEVEL_AUDITING = 403038
  69. ERR_LEVEL_RENEW_SHOULD_KEEP_CURRENT = 403039
  70. ERR_LEVEL_UPGRADE_APPLY_AUDITTING = 403040
  71. ERR_LEVEL_TASK_PAY_TYPE = 403041
  72. ERR_BALANCE_NOT_ENOUGH = 403042
  73. ERR_ADMIN_PUSH = 403043
  74. ERR_PLAN = 403044
  75. ERR_MOB_CONFIG = 403045
  76. ERR_BAlANCE_PAY_ORDERTYPE = 403046
  77. ERR_PHONE_EXISTED = 403047
  78. ERR_NOT_RESULT = 403048
  79. ERR_REVIEW = 403049
  80. ERR_USER_LEVEL_HAS_PAID = 403050
  81. ERR_USER_BIND_OWN = 403051
  82. ERR_PARENTUID_ERR = 403052
  83. ERR_USER_DEL = 403053
  84. ERR_SEARCH_ERR = 403054
  85. ERR_LEVEL_REACH_TOP = 403055
  86. ERR_USER_CHECK_ERR = 403056
  87. ERR_PASSWORD_ERR = 403057
  88. // 404
  89. ERR_USER_NOTFOUND = 404001
  90. ERR_SUP_NOTFOUND = 404002
  91. ERR_LEVEL_MAP = 404003
  92. ERR_MOD_NOTFOUND = 404004
  93. ERR_CLIPBOARD_PARSE = 404005
  94. ERR_NOT_FAN = 404006
  95. ERR_USER_LEVEL = 404007
  96. ERR_LACK_PAY_CFG = 404008
  97. ERR_NOT_LEVEL_TASK = 404009
  98. ERR_ITEM_NOT_FOUND = 404010
  99. ERR_WX_CHECKFILE_NOTFOUND = 404011
  100. // 429 请求频繁
  101. ERR_TOO_MANY_REQUESTS = 429000
  102. // 500 系列
  103. ERR = 500000
  104. ERR_UNMARSHAL = 500001
  105. ERR_UNKNOWN = 500002
  106. ERR_SMS = 500003
  107. ERR_ARKID_REGISTER = 500004
  108. ERR_ARKID_WHITELIST = 500005
  109. ERR_ARKID_LOGIN = 500006
  110. ERR_CFG = 500007
  111. ERR_DB_ORM = 500008
  112. ERR_CFG_CACHE = 500009
  113. ERR_ZHIMENG_CONVERT_ERR = 500010
  114. ERR_ALIPAY_ERR = 500011
  115. ERR_ALIPAY_ORDER_ERR = 500012
  116. ERR_PAY_ERR = 500013
  117. ERR_IS_BIND_THIRDOTHER = 500014
  118. )
  119. var MsgFlags = map[int]string{
  120. // 200
  121. ERR_FILE_SAVE: "文件保存失败",
  122. // 400
  123. ERR_BAD_REQUEST: "请求失败",
  124. ERR_INVALID_ARGS: "请求参数错误",
  125. ERR_API_RESPONSE: "API错误",
  126. ERR_QINIUAPI_RESPONSE: "七牛请求API错误",
  127. ERR_URL_TURNCHAIN: "转链失败",
  128. ERR_NO_DATA: "暂无数据",
  129. ERR_MOBILE_NIL: "电话号码不能为空",
  130. ERR_MOBILE_MATH: "电话号码输入有误",
  131. ERR_FILE_MAX_SIZE: "文件上传大小超限",
  132. ERR_FILE_EXT: "文件类型不支持",
  133. ERR_SIGN: "签名校验失败",
  134. ERR_PROVIDER_RESPONSE: "提供商接口错误",
  135. ERR_AES_ENCODE: "加解密错误",
  136. ERR_ADMIN_API: "后台接口请求失败",
  137. // 401
  138. ERR_NOT_AUTH: "请登录后操作",
  139. ERR_SMS_AUTH: "验证码过期或无效",
  140. ERR_UNAUTHORIZED: "验证用户失败",
  141. ERR_TOKEN_FORMAT: "Token格式不对",
  142. ERR_TOKEN_GEN: "生成Token失败",
  143. ERR_CACHE_SET: "生成缓存失败",
  144. // 403
  145. ERR_FORBIDEN: "禁止访问",
  146. ERR_PLATFORM: "平台不支持",
  147. ERR_MOBILE_EXIST: "该号码已注册过",
  148. ERR_USER_NO_EXIST: "用户没有注册或账号密码不正确",
  149. ERR_PASSWORD_ERR: "输入两次密码不一致",
  150. ERR_RELATE_ERR: "推荐人不能是自己的粉丝",
  151. ERR_PARENTUID_ERR: "推荐人不存在",
  152. ERR_TOKEN_AUTH: "登录信息失效,请重新登录",
  153. ERR_MOB_SMS_NO_AVA: "短信余额不足或智盟短信配置失败",
  154. ERR_USER_IS_REG: "用户已注册",
  155. ERR_MASTER_ID: "找不到对应站长的数据库",
  156. ERR_CASH_OUT_TIME: "非可提现时间段",
  157. ERR_CASH_OUT_USER_NOT_FOUND: "收款账号不存在",
  158. ERR_CASH_OUT_FAIL: "提现失败",
  159. ERR_CASH_OUT_FEE: "提现金额必须大于手续费",
  160. ERR_CASH_OUT_TIMES: "当日提现次数已达上线",
  161. ERR_CASH_OUT_MINI: "申请提现金额未达到最低金额要求",
  162. ERR_CASH_OUT_MUT: "申请提现金额未达到整数倍要求",
  163. ERR_CASH_OUT_NOT_DECIMAL: "提现申请金额只能是整数",
  164. ERR_CASH_OUT_NOT_DAY_AVA: "不在可提现日期范围内",
  165. ERR_USER_LEVEL_PAY_CHECK_TASK_NO_DONE: "请先完成其他任务",
  166. ERR_USER_LEVEL_PAY_CHECK_NO_CROSS: "无法跨越升级",
  167. ERR_USER_LEVEL_ORD_EXP: "付费订单已失效",
  168. ERR_IS_BIND_THIRDPARTY: "该用户已经绑定了",
  169. ERR_IS_BIND_THIRDOTHER: "该账号已经被绑定了",
  170. ERR_USER_LEVEL_UPDATE_CHECK_TASK_NO_DONE: "请完成指定任务",
  171. ERR_USER_LEVEL_UPDATE_CHECK_NOT_FOUND_ORDER: "没有找到对应的订单",
  172. ERR_USER_LEVEL_UPDATE_REPEAT: "不允许重复升级",
  173. ERR_USER_NO_ACTIVE: "账户没激活",
  174. ERR_USER_IS_BAN: "账户已被冻结",
  175. ERR_SYSUNION_CONFIG: "联盟设置错误,请检查配置",
  176. ERR_WECAHT_MINI: "小程序响应错误,请检查小程序配置",
  177. ERR_WECAHT_MINI_CACHE: "获取小程序缓存失败",
  178. ERR_WECAHT_MINI_DECODE: "小程序解密失败",
  179. ERR_WECHAT_MINI_ACCESSTOKEN: "无法获取accesstoekn",
  180. ERR_CURRENT_VIP_LEVEL_AUDITING: "当前等级正在审核中",
  181. ERR_LEVEL_RENEW_SHOULD_KEEP_CURRENT: "续费只能在当前等级续费",
  182. ERR_LEVEL_UPGRADE_APPLY_AUDITTING: "已有申请正在审核中,暂时不能申请",
  183. ERR_LEVEL_TASK_PAY_TYPE: "任务付费类型错误",
  184. ERR_BALANCE_NOT_ENOUGH: "余额不足",
  185. ERR_ADMIN_PUSH: "后台MOB推送错误",
  186. ERR_PLAN: "分拥方案出错",
  187. ERR_MOB_CONFIG: "Mob 配置错误",
  188. ERR_BAlANCE_PAY_ORDERTYPE: "无效余额支付订单类型",
  189. ERR_PHONE_EXISTED: "手机号码已存在",
  190. ERR_NOT_RESULT: "已加载完毕",
  191. ERR_REVIEW: "审核模板错误",
  192. ERR_USER_LEVEL_HAS_PAID: "该等级已经付过款",
  193. // 404
  194. ERR_USER_NOTFOUND: "用户不存在",
  195. ERR_USER_DEL: "账号被删除,如有疑问请联系客服",
  196. ERR_SUP_NOTFOUND: "上级用户不存在",
  197. ERR_LEVEL_MAP: "无等级映射关系",
  198. ERR_MOD_NOTFOUND: "没有找到对应模块",
  199. ERR_CLIPBOARD_PARSE: "无法解析剪切板内容",
  200. ERR_NOT_FAN: "没有粉丝",
  201. ERR_CLIPBOARD_UNSUP: "不支持该平台",
  202. ERR_USER_LEVEL: "该等级已不存在",
  203. ERR_LACK_PAY_CFG: "支付配置不完整",
  204. ERR_NOT_LEVEL_TASK: "等级任务查找错误",
  205. ERR_ITEM_NOT_FOUND: "找不到对应商品",
  206. ERR_WX_CHECKFILE_NOTFOUND: "找不到微信校验文件",
  207. ERR_USER_BIND_OWN: "不能填写自己的邀请码",
  208. // 429
  209. ERR_TOO_MANY_REQUESTS: "请求频繁,请稍后重试",
  210. // 500 内部错误
  211. ERR: "接口错误",
  212. ERR_SMS: "短信发送出错",
  213. ERR_CFG: "服务器配置错误",
  214. ERR_UNMARSHAL: "JSON解码错误",
  215. ERR_UNKNOWN: "未知错误",
  216. ERR_ARKID_LOGIN: "登录失败",
  217. ERR_MOBILE_NO_EXIST: "该用户未设定手机号",
  218. ERR_FORBIDEN_VALID: "验证码错误",
  219. ERR_CFG_CACHE: "获取配置缓存失败",
  220. ERR_DB_ORM: "数据操作失败",
  221. ERR_REPEAT_RELATE: "重复关联",
  222. ERR_ZHIMENG_CONVERT_ERR: "智盟转链失败",
  223. ERR_MOB_FORBIDEN: "Mob调用失败",
  224. ERR_ALIPAY_ERR: "支付宝参数错误",
  225. ERR_ALIPAY_SETTING: "请在后台正确配置支付宝",
  226. ERR_ALIPAY_ORDERTYPE: "无效支付宝订单类型",
  227. ERR_ALIPAY_ORDER_ERR: "订单创建错误",
  228. ERR_PAY_ERR: "未找到支付方式",
  229. ERR_SEARCH_ERR: "暂无该分类商品",
  230. ERR_LEVEL_REACH_TOP: "已经是最高等级",
  231. ERR_USER_CHECK_ERR: "校验失败",
  232. }