ErrorCode.php 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | 萤火商城系统 [ 致力于通过产品和服务,帮助商家高效化开拓市场 ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2017~2024 https://www.yiovo.com All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed 这不是一个自由软件,不允许对程序代码以任何形式任何目的的再发行
  8. // +----------------------------------------------------------------------
  9. // | Author: 萤火科技 <admin@yiovo.com>
  10. // +----------------------------------------------------------------------
  11. declare (strict_types=1);
  12. namespace app\common\library\wechat;
  13. /**
  14. * error code 说明.
  15. * <ul>
  16. * <li>-41001: encodingAesKey 非法</li>
  17. * <li>-41003: aes 解密失败</li>
  18. * <li>-41004: 解密后得到的buffer非法</li>
  19. * <li>-41005: base64加密失败</li>
  20. * <li>-41016: base64解密失败</li>
  21. * </ul>
  22. */
  23. class ErrorCode
  24. {
  25. public static int $OK = 0;
  26. public static int $IllegalAesKey = -41001;
  27. public static int $IllegalIv = -41002;
  28. public static int $IllegalBuffer = -41003;
  29. public static int $DecodeBase64Error = -41004;
  30. }