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