企微短剧业务系统

errorCode.php 1.0KB

1234567891011121314151617181920212223242526272829303132333435
  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: corpid 校验错误</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 $ValidateCorpidError = -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. ?>