Ken 2 дней назад
Родитель
Сommit
6e9a437470
2 измененных файлов с 11 добавлено и 0 удалено
  1. 7 0
      app/Services/ActivityRewardService.php
  2. 4 0
      app/Services/KeyboardService.php

+ 7 - 0
app/Services/ActivityRewardService.php

@@ -97,4 +97,11 @@ class ActivityRewardService extends BaseService
         }
         return true;
     }
+
+
+    public static function promotionalActivity(): array
+    {
+
+        return [];
+    }
 }

+ 4 - 0
app/Services/KeyboardService.php

@@ -200,6 +200,10 @@ class KeyboardService extends BaseService
     public static function menuEvent($chatId, $event = '')
     {
         switch ($event) {
+            case "":
+                // 删除个人缓存
+                Util::delCache($chatId);
+                return ActivityRewardService::promotionalActivity();
             case 'recentBets': // 近期注单
                 // 删除个人缓存
                 Util::delCache($chatId);