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