|
|
@@ -259,9 +259,8 @@ class BetService extends BaseService
|
|
|
|
|
|
if (empty($issueInfo)) {
|
|
|
if ($pc28Switch == 1) {
|
|
|
-
|
|
|
$issueCloseInfo = PcIssue::where('status', PcIssue::STATUS_CLOSE)->orderBy('id', 'desc')->first();
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
$issueCloseInfo = IssueService::model()::where('status', IssueService::model()::STATUS_CLOSE)->orderBy('id', 'desc')->first();
|
|
|
}
|
|
|
|
|
|
@@ -372,9 +371,20 @@ class BetService extends BaseService
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
+ //随机虚拟下注
|
|
|
+ public static function randomVirtualBetting($maxPeople = 1): void
|
|
|
+ {
|
|
|
+ $maxPeople = intval($maxPeople);
|
|
|
+ $maxPeople = max($maxPeople, 1);
|
|
|
+ $maxPeople = min($maxPeople, 20);
|
|
|
+ $num = rand(1, $maxPeople);
|
|
|
+ for ($i = 0; $i < $num; $i++) {
|
|
|
+ static::fakeBet();
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
// 模拟下注
|
|
|
- public static function fakeBet()
|
|
|
+ private static function fakeBet()
|
|
|
{
|
|
|
$noRule = ['0操', '27操'];
|
|
|
// 防止一开就虚拟投注
|