Ken hai 2 días
pai
achega
10c16e7533
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      app/Services/BetService.php

+ 2 - 2
app/Services/BetService.php

@@ -413,7 +413,7 @@ class BetService extends BaseService
                     $betTimes = rand(1, 4); // 每次下注次数
                     for ($i = 0; $i < $betTimes; $i++) {
 
-                        if ($issueInfo['end_time'] - $now_date < 22) {
+                        if (strtotime($issueInfo['end_time']) - strtotime($now_date) < 22) {
                             $fake_bet_count = Cache::get("fake_bet_count_{$issueInfo->issue_no}", 0);
                             if ($fake_bet_count >= 3) return;
                         }
@@ -459,7 +459,7 @@ class BetService extends BaseService
                             $groupText .= "----------- \n";
 
 
-                            if ($issueInfo['end_time'] - $now_date < 22) {
+                            if (strtotime($issueInfo['end_time']) - strtotime($now_date) < 22) {
                                 $fake_bet_count = Cache::get("fake_bet_count_{$issueInfo->issue_no}", 0);
                                 Cache::put("fake_bet_count_{$issueInfo->issue_no}", $fake_bet_count + 1, 500);
                             }