Ken 2 päivää sitten
vanhempi
commit
10c16e7533
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  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);
                             }