You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
1.0 KiB

7 years ago
  1. <?php
  2. /**
  3. * error code 说明.
  4. * <ul>
  5. * <li>-40001: 签名验证错误</li>
  6. * <li>-40002: xml解析失败</li>
  7. * <li>-40003: sha加密生成签名失败</li>
  8. * <li>-40004: encodingAesKey 非法</li>
  9. * <li>-40005: appid 校验错误</li>
  10. * <li>-40006: aes 加密失败</li>
  11. * <li>-40007: aes 解密失败</li>
  12. * <li>-40008: 解密后得到的buffer非法</li>
  13. * <li>-40009: base64加密失败</li>
  14. * <li>-40010: base64解密失败</li>
  15. * <li>-40011: 生成xml失败</li>
  16. * </ul>
  17. */
  18. class ErrorCode
  19. {
  20. public static $OK = 0;
  21. public static $ValidateSignatureError = -40001;
  22. public static $ParseXmlError = -40002;
  23. public static $ComputeSignatureError = -40003;
  24. public static $IllegalAesKey = -40004;
  25. public static $ValidateAppidError = -40005;
  26. public static $EncryptAESError = -40006;
  27. public static $DecryptAESError = -40007;
  28. public static $IllegalBuffer = -40008;
  29. public static $EncodeBase64Error = -40009;
  30. public static $DecodeBase64Error = -40010;
  31. public static $GenReturnXmlError = -40011;
  32. }
  33. ?>