|
|
@@ -423,18 +423,13 @@ class BetService extends BaseService
|
|
|
|
|
|
$now_date = date('Y-m-d H:i:s', time() + 38); // 提前45秒
|
|
|
if ($issueInfo['end_time'] > $now_date) {
|
|
|
-
|
|
|
-
|
|
|
$fake_bet_list = Cache::get('fake_bet_' . $issueInfo->issue_no, []);
|
|
|
-
|
|
|
$gameplayRuleList = GameplayRuleService::model()::where('odds', '>', 0)->get();
|
|
|
$gameplayRuleList = $gameplayRuleList->toArray();
|
|
|
$member_id = self::generateRandomNumber(10);
|
|
|
$betTimes = rand(1, $betNumber); // 每次下注次数
|
|
|
-
|
|
|
-
|
|
|
for ($i = 0; $i < $betTimes; $i++) {
|
|
|
- if (strtotime($issueInfo['end_time']) - time() < 60) {
|
|
|
+ if (strtotime($issueInfo['end_time']) - time() < IssueService::COUNTDOWN_TO_CLOSING_THE_MARKET) {
|
|
|
$fake_bet_count = Cache::get("fake_bet_count_{$issueInfo->issue_no}", 0);
|
|
|
if ($fake_bet_count >= 3) return;
|
|
|
}
|