|
|
@@ -403,6 +403,8 @@ 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();
|
|
|
@@ -410,6 +412,13 @@ class BetService extends BaseService
|
|
|
$member_id = self::generateRandomNumber(10);
|
|
|
$betTimes = rand(1, 4); // 每次下注次数
|
|
|
for ($i = 0; $i < $betTimes; $i++) {
|
|
|
+
|
|
|
+ if ($issueInfo['end_time'] - $now_date < 22) {
|
|
|
+ $fake_bet_count = Cache::get("fake_bet_count_{$issueInfo->issue_no}", 0);
|
|
|
+ if ($fake_bet_count >= 3) return;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
$randKey = array_rand($gameplayRuleList, 1);
|
|
|
$gameplayRuleInfo = $gameplayRuleList[$randKey] ?? [];
|
|
|
if ($gameplayRuleInfo) {
|
|
|
@@ -450,6 +459,12 @@ class BetService extends BaseService
|
|
|
$groupText .= "----------- \n";
|
|
|
|
|
|
|
|
|
+ if ($issueInfo['end_time'] - $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);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
$inlineButton = self::getOperateButton();
|
|
|
|
|
|
// 群通知
|