@@ -353,7 +353,11 @@ class BetService extends BaseService
// 模拟下注
public static function fakeBet()
{
-
+ // 防止一开就虚拟投注
+ $cache = Cache::get('new_issue_no');
+ if($cache){
+ return;
+ }
$betFake = Config::where('field', 'bet_fake')->first()->val;
if ($betFake) {
// 期数验证
@@ -765,6 +765,7 @@ class IssueService extends BaseService
if($id){
self::betting($id); // 开始下注
}
+ Cache::set('new_issue_no',$new_issue_no, 10); // 缓存