|
|
@@ -168,6 +168,18 @@ class BetService extends BaseService
|
|
|
// 分解投注的内容
|
|
|
$betResult = GameplayRuleService::bettingRuleVerify($input);
|
|
|
$serviceAccount = Config::where('field', 'service_customer')->first()->val;
|
|
|
+
|
|
|
+ $maintenanceSwitch = Config::where('field', 'maintenance_switch')->first()->val;
|
|
|
+ if ($maintenanceSwitch != 0) {
|
|
|
+ $text = lang("系统维护中!") . "\n";
|
|
|
+ $text .= lang("任何疑问都可以联系唯一客服") . ":@{$serviceAccount}";
|
|
|
+ $msg['text'] = $text;
|
|
|
+ if ($messageId) {
|
|
|
+ $msg['reply_to_message_id'] = $messageId;
|
|
|
+ }
|
|
|
+ return $msg;
|
|
|
+ }
|
|
|
+
|
|
|
if ($betResult == null) {
|
|
|
$text = lang("消息格式错误!") . "\n";
|
|
|
$text .= lang("任何疑问都可以联系唯一客服") . ":@{$serviceAccount}";
|
|
|
@@ -373,6 +385,12 @@ class BetService extends BaseService
|
|
|
if ($cache) {
|
|
|
return;
|
|
|
}
|
|
|
+ $maintenanceSwitch = Config::where('field', 'maintenance_switch')->first()->val;
|
|
|
+ if ($maintenanceSwitch != 0) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
$betFake = Config::where('field', 'bet_fake')->first()->val;
|
|
|
if ($betFake) {
|
|
|
// 期数验证
|