ThirdOauthEnum.php 435 B

12345678910111213141516171819202122
  1. <?php
  2. namespace app\common\Enum;
  3. /**
  4. * 全局状态枚举 provider 提供商 、 platform
  5. */
  6. class ThirdOauthEnum
  7. {
  8. const PROVIDER_WECHAT = 'wechat';
  9. const PROVIDER_QQ = 'qq';
  10. const PROVIDER_WEIBO = 'weibo';
  11. public static function getMap()
  12. {
  13. return [
  14. self::PROVIDER_WECHAT => '微信',
  15. self::PROVIDER_QQ => 'QQ',
  16. self::PROVIDER_WEIBO => '微博',
  17. ];
  18. }
  19. }