Ken 6 hari lalu
induk
melakukan
9f52be8e4a
1 mengubah file dengan 4 tambahan dan 6 penghapusan
  1. 4 6
      app/Services/BetService.php

+ 4 - 6
app/Services/BetService.php

@@ -195,7 +195,7 @@ class BetService extends BaseService
                 $error = $issueNo = "";
                 $b = static::singleNote($memberId, $keywords, $amount, $issueNo, $text, $error);
                 if ($b) {
-                    $sumAmount+= $amount;
+                    $sumAmount += $amount;
                     $text = str_replace("{issue_no}", $issueNo, $text);
                     $success = true;
                     $text .= "\n";
@@ -206,7 +206,7 @@ class BetService extends BaseService
             }
             $sumAmount = number_format($sumAmount, 2);
             $text .= "--------\n";
-            $text .=lang("合计金额").":{$sumAmount}\n";
+            $text .= lang("合计金额") . ":{$sumAmount}\n";
             $text .= lang("下注成功");
             if (!$success) {
                 $msg['text'] = $errText;
@@ -433,12 +433,10 @@ class BetService extends BaseService
                     $betTimes = rand(1, $betNumber); // 每次下注次数
 
 
-
-
                     for ($i = 0; $i < $betTimes; $i++) {
                         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;
+                            if ($fake_bet_count >= rand(3, 5)) return;
                         }
 
 
@@ -458,7 +456,7 @@ class BetService extends BaseService
 
                             $amount = rand($betMini, $betMax);
                             $amount = floor($amount / 10) * 10;
-                            $input = $gameplayRuleInfo['keywords'] . ' '.$amount;
+                            $input = $gameplayRuleInfo['keywords'] . ' ' . $amount;
                             // $amount = number_format($amount,2);
                             $item = [];
                             $item['keywords'] = $gameplayRuleInfo['keywords'];