123456789101112131415161718192021222324252627282930 |
- <?php
- namespace app\common\Enum;
- /**
- * 全局状态枚举
- */
- class UserShareEnum
- {
- const FROM_FORWARD = 'forward';
- const FROM_POSTER = 'poster';
- const FROM_LINK = 'link';
- public static function getFromList()
- {
- return [
- self::FROM_FORWARD => '直接转发',
- self::FROM_POSTER => '识别海报',
- self::FROM_LINK => '分享链接',
- ];
- }
- public static function getFromText($from)
- {
- return self::getFromList()[$from] ?? '未知';
- }
- public static function getFromList()
- }
|