Przeglądaj źródła

fix superball_daily locked1

laowu 2 dni temu
rodzic
commit
f6f44a7865

+ 1 - 3
app/Console/Commands/SuperballUpdatePoolAndStats.php

@@ -31,7 +31,6 @@ class SuperballUpdatePoolAndStats extends Command
 
     public function handle(): int
     {
-        return false;
         $today = Carbon::today();
         $dateStr = $today->format('Y-m-d');
         $dateId = $today->format('Ymd');
@@ -104,5 +103,4 @@ class SuperballUpdatePoolAndStats extends Command
             return false;
         }
     }
-}
-
+}

+ 1 - 1
app/Http/Controllers/Admin/SuperballController.php

@@ -92,7 +92,7 @@ class SuperballController extends BaseController
             ->leftJoin('QPAccountsDB.dbo.AccountsInfo as a', 't.user_id', '=', 'a.UserID')
             ->leftJoin(TableName::agent() . 'superball_user_multiplier as m', 't.user_id', '=', 'm.user_id')
             ->leftJoin(TableName::agent() . 'superball_tier_config as c', 't.tier', '=', 'c.tier')
-            ->leftJoin(TableName::agent() . 'superball_daily as d', 't.task_date', '=', 'd.pool_date')
+            ->leftJoin(DB::raw(TableName::agent() . 'superball_daily as d WITH (NOLOCK)'), 't.task_date', '=', 'd.pool_date')
             ->selectRaw('t.*, a.GameID as game_id, m.multiplier, c.ball_count as tier_ball_count, d.pool_amount, d.total_balls as daily_total_balls');
 
         if ($date) {