|
@@ -17,7 +17,7 @@ use App\Services\VipService;
|
|
|
*/
|
|
*/
|
|
|
class SuperballActivityService
|
|
class SuperballActivityService
|
|
|
{
|
|
{
|
|
|
- public const TIER_MAX = 'S';
|
|
|
|
|
|
|
+ public const TIER_MAX = 'SSS';
|
|
|
public const MULTIPLIER_MIN = 1.0;
|
|
public const MULTIPLIER_MIN = 1.0;
|
|
|
public const MULTIPLIER_MAX = 3.0;
|
|
public const MULTIPLIER_MAX = 3.0;
|
|
|
public const MULTIPLIER_STEP = 0.5;
|
|
public const MULTIPLIER_STEP = 0.5;
|
|
@@ -260,7 +260,7 @@ class SuperballActivityService
|
|
|
return ['success' => false, 'message' => ['web.superball.already_claimed', 'Already claimed']];
|
|
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;
|
|
$currentOrder = $tierOrder[$task->tier] ?? 0;
|
|
|
$newOrder = $tierOrder[$newTier] ?? 0;
|
|
$newOrder = $tierOrder[$newTier] ?? 0;
|
|
|
if ($newOrder <= $currentOrder) {
|
|
if ($newOrder <= $currentOrder) {
|