Explorar el Código

superball 新增两档

laowu hace 1 día
padre
commit
9477caf4c8
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      app/Services/SuperballActivityService.php

+ 2 - 2
app/Services/SuperballActivityService.php

@@ -17,7 +17,7 @@ use App\Services\VipService;
  */
 class SuperballActivityService
 {
-    public const TIER_MAX = 'S';
+    public const TIER_MAX = 'SSS';
     public const MULTIPLIER_MIN = 1.0;
     public const MULTIPLIER_MAX = 3.0;
     public const MULTIPLIER_STEP = 0.5;
@@ -260,7 +260,7 @@ class SuperballActivityService
             return ['success' => false, 'message' => ['web.superball.already_claimed', 'Already claimed']];
         }
 
-        $tierOrder = ['E' => 1, 'D' => 2, 'C' => 3, 'B' => 4, 'A' => 5, 'S' => 6];
+        $tierOrder = ['E' => 1, 'D' => 2, 'C' => 3, 'B' => 4, 'A' => 5, 'S' => 6, 'SS' => 7, 'SSS' => 8];
         $currentOrder = $tierOrder[$task->tier] ?? 0;
         $newOrder = $tierOrder[$newTier] ?? 0;
         if ($newOrder <= $currentOrder) {