errorCode.php 585 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace miniprogram;
  3. /**
  4. * error code 说明.
  5. * <ul>
  6. * <li>-41001: encodingAesKey 非法</li>
  7. * <li>-41006: 返回值为空</li>
  8. * <li>-41003: aes 解密失败</li>
  9. * <li>-41004: 解密后得到的buffer非法</li>
  10. * <li>-41005: base64加密失败</li>
  11. * <li>-41016: base64解密失败</li>
  12. * </ul>
  13. */
  14. class ErrorCode
  15. {
  16. public static $OK = 0;
  17. public static $IllegalAesKey = -41001;
  18. public static $IllegalIv = -41002;
  19. public static $IllegalBuffer = -41003;
  20. public static $IllegalEmpty = -41006;
  21. public static $DecodeBase64Error = -41004;
  22. }
  23. ?>