12345678910111213141516171819202122 |
- <?php
- namespace app\common\Enum;
- /**
- * 全局状态枚举 provider 提供商 、 platform
- */
- class ThirdOauthEnum
- {
- const PROVIDER_WECHAT = 'wechat';
- const PROVIDER_QQ = 'qq';
- const PROVIDER_WEIBO = 'weibo';
- public static function getMap()
- {
- return [
- self::PROVIDER_WECHAT => '微信',
- self::PROVIDER_QQ => 'QQ',
- self::PROVIDER_WEIBO => '微博',
- ];
- }
- }
|