| 12345678910111213141516171819202122232425262728293031 |
- <?php
- namespace App\Support;
- use App\Services\Sharing\ShareDefaults;
- /** Reuse commission game categories; "other" is an activity-only classification. */
- final class ActivityCatalog
- {
- public static function activityTypes(): array
- {
- return [2 => '普通活动', 3 => '即充即送', 4 => '老用户召集令', 5 => 'USDT使用教学', 6 => '余额宝'];
- }
- public static function gameTypes(): array
- {
- return ShareDefaults::categories() + ['other' => '其他'];
- }
- public static function options(): array
- {
- $gameTypes = $activityTypes = [];
- foreach (self::gameTypes() as $value => $label) {
- $gameTypes[] = ['value' => $value, 'label' => $label];
- }
- foreach (self::activityTypes() as $value => $label) {
- $activityTypes[] = ['value' => $value, 'label' => $label];
- }
- return ['game_types' => $gameTypes, 'activity_types' => $activityTypes];
- }
- }
|