CertDict.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | Niucloud-admin 企业快速开发的saas管理平台
  4. // +----------------------------------------------------------------------
  5. // | 官方网址:https://www.niucloud.com
  6. // +----------------------------------------------------------------------
  7. // | niucloud团队 版权所有 开源版本可自由商用
  8. // +----------------------------------------------------------------------
  9. // | Author: Niucloud Team
  10. // +----------------------------------------------------------------------
  11. namespace app\dict\channel;
  12. class CertDict
  13. {
  14. /************************************************* 证书 *****************************************/
  15. public const WECHATPAY = 'wechatpay';
  16. public const WECHAT = 'wechat';
  17. public const ALIYUN = 'aliyun';
  18. public const WEAPP = 'weapp';
  19. public const ALIAPP = 'aliapp';
  20. /**
  21. * 加解密方式
  22. * @return array
  23. */
  24. public static function getCertType()
  25. {
  26. return [
  27. self::WECHATPAY,
  28. self::WECHAT,
  29. self::ALIYUN,
  30. self::WEAPP,
  31. self::ALIAPP,
  32. ];
  33. }
  34. }