ErrorCode.Class.php 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <?php
  2. /**
  3. * 统一的错误编码 方便Service 和 其它项目之间Swoole传输判断
  4. */
  5. namespace Mall\Framework\Core;
  6. class ErrorCode
  7. {
  8. /** @var int $notShowError 后端错误,前端不用展示*/
  9. public static $notShowError = 9999;
  10. /** @var int $paramError 参数错误 */
  11. public static $paramError = 1001;
  12. /** @var int $userNotFount 用户不存在 */
  13. public static $userNotFount = 1002;
  14. /** @var int $notAllowAccess 非法的请求 */
  15. public static $notAllowAccess = 1003;
  16. /** @var int $mobileCodeFail 验证码错误 */
  17. public static $mobileCodeFail = 1004;
  18. /** @var int $dberror 数据库操作错误 */
  19. public static $dberror = 1005;
  20. /** @var int $accountfail 登录帐号密码错误 */
  21. public static $accountfail = 1006;
  22. /** @var int $swooleRecvError swoole服务未返回消息 */
  23. public static $swooleRecvError = 1007;
  24. /** @var int $loginedexpire 登陆过期 */
  25. public static $loginedexpire = 1008;
  26. /** @var int $redisWriteError redis写入失败 */
  27. public static $redisWriteError = 1009;
  28. /** @var int $notHaveAclAccess 没有权限访问 */
  29. public static $notHaveAclAccess = 1010;
  30. /** @var int $signfail 签名错误 */
  31. public static $signfail = 1011;
  32. /** @var int $mobileishaved 注册手机号已经存在 */
  33. public static $mobileishaved = 1012;
  34. /** @var int $uploadEroor 上传操作失败 */
  35. public static $uploadEroor = 1013;
  36. /** @var int $configEroor 配置文件错误 */
  37. public static $configEroor = 1014;
  38. /** @var int $apiNotResult 接口返回数据错误 */
  39. public static $apiNotResult = 1015;
  40. /** @var int $serviceError 服务错误 */
  41. public static $serviceError = 1016;
  42. /** @var int $notAllowToken 非法或无效的Token */
  43. public static $notAllowToken = 1017;
  44. /** @var int $contentNotExists 资讯内容不存在 */
  45. public static $contentNotExists = 1018;
  46. /** @var int $nickNameIsHaved 昵称已经注册过了 */
  47. public static $nickNameIsHaved = 1019;
  48. /** @var int $actionIsDo 重复得操作 */
  49. public static $actionIsDo = 1020;
  50. /** @var int $weixinPayError 微信支付接口返回错误 */
  51. public static $weixinPayError = 1021;
  52. /** @var int $invalidAccess 库存不足 */
  53. public static $invalidAccess = 1021;
  54. /** @var int $invalidAccess 销售单重复提交 */
  55. public static $resubmit = 1022;
  56. /** @var int $invalidAccess 商品被删除 */
  57. public static $goodsDelete = 1023;
  58. /** @var int $invalidAccess 初始密码登录 */
  59. public static $defaultPassword = 1024;
  60. public static $OK = 0;
  61. public static $IllegalAesKey = 900004;
  62. public static $ValidateSignatureError = 900005;
  63. public static $ComputeSignatureError = 900006;
  64. public static $EncryptAESError = 900007;
  65. public static $DecryptAESError = 900008;
  66. public static $ValidateSuiteKeyError = 900010;
  67. }