|
@@ -399,17 +399,22 @@ class BetService extends BaseService
|
|
|
// 防止一开就虚拟投注
|
|
// 防止一开就虚拟投注
|
|
|
$cache = Cache::get('new_issue_no');
|
|
$cache = Cache::get('new_issue_no');
|
|
|
if ($cache) {
|
|
if ($cache) {
|
|
|
- echo "aaaa";
|
|
|
|
|
|
|
+ echo "防止一开就虚拟投注\n";
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ //系统维护
|
|
|
$maintenanceSwitch = Config::where('field','maintenance_switch')->first()->val;
|
|
$maintenanceSwitch = Config::where('field','maintenance_switch')->first()->val;
|
|
|
if ($maintenanceSwitch != 0) {
|
|
if ($maintenanceSwitch != 0) {
|
|
|
- echo "bbbb";
|
|
|
|
|
|
|
+ echo "系统维护中\n";
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
//后台是否开启虚拟投注
|
|
//后台是否开启虚拟投注
|
|
|
$betFake = Config::where('field', 'bet_fake')->first()->val;
|
|
$betFake = Config::where('field', 'bet_fake')->first()->val;
|
|
|
- if ($betFake != 1) return;
|
|
|
|
|
|
|
+ if ($betFake != 1) {
|
|
|
|
|
+ echo "未开启虚拟投注\n";
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
|
|
|
// 期数验证
|
|
// 期数验证
|