ActivityCatalog.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. namespace App\Support;
  3. use App\Services\Sharing\ShareDefaults;
  4. /** Activity display categories include hot/other and a single F1 lottery category. */
  5. final class ActivityCatalog
  6. {
  7. public static function activityTypes(): array
  8. {
  9. return [2 => '普通活动', 3 => '即充即送', 4 => '老用户召集令', 5 => 'USDT使用教学', 6 => '余额宝'];
  10. }
  11. public static function gameTypes(): array
  12. {
  13. $categories = ShareDefaults::categories();
  14. unset($categories['third:3']);
  15. return ['hot' => '热门'] + $categories + ['other' => '其他'];
  16. }
  17. public static function options(): array
  18. {
  19. $gameTypes = $activityTypes = [];
  20. foreach (self::gameTypes() as $value => $label) {
  21. $gameTypes[] = ['value' => $value, 'label' => $label];
  22. }
  23. foreach (self::activityTypes() as $value => $label) {
  24. $activityTypes[] = ['value' => $value, 'label' => $label];
  25. }
  26. return ['game_types' => $gameTypes, 'activity_types' => $activityTypes,
  27. 'click_types' => AnnouncementCatalog::options(AnnouncementCatalog::CLICKS),
  28. 'click_positions' => [['value' => 'cover', 'label' => '活动列表封面'], ['value' => 'detail', 'label' => '活动详情按钮']]];
  29. }
  30. }