| 1234567891011121314151617181920212223242526272829303132333435 |
- <?php
- namespace App\Support;
- use App\Services\Sharing\ShareDefaults;
- /** Activity display categories include hot/other and a single F1 lottery category. */
- final class ActivityCatalog
- {
- public static function activityTypes(): array
- {
- return [2 => '普通活动', 3 => '即充即送', 4 => '老用户召集令', 5 => 'USDT使用教学', 6 => '余额宝'];
- }
- public static function gameTypes(): array
- {
- $categories = ShareDefaults::categories();
- unset($categories['third:3']);
- return ['hot' => '热门'] + $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,
- 'click_types' => AnnouncementCatalog::options(AnnouncementCatalog::CLICKS),
- 'click_positions' => [['value' => 'cover', 'label' => '活动列表封面'], ['value' => 'detail', 'label' => '活动详情按钮']]];
- }
- }
|