|
@@ -207,7 +207,7 @@ class IssueService extends BaseService
|
|
|
if ($info->status != self::model()::STATUS_BETTING) {
|
|
if ($info->status != self::model()::STATUS_BETTING) {
|
|
|
return ['code' => self::NOT, 'msg' => '期号状态不正确'];
|
|
return ['code' => self::NOT, 'msg' => '期号状态不正确'];
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+ $pc28Switch = Config::where('field', 'pc28_switch')->first()->val;
|
|
|
$info->status = self::model()::STATUS_CLOSE;
|
|
$info->status = self::model()::STATUS_CLOSE;
|
|
|
$info->save();
|
|
$info->save();
|
|
|
$replyInfo = KeyboardService::findOne(['button' => '停止下注']);
|
|
$replyInfo = KeyboardService::findOne(['button' => '停止下注']);
|
|
@@ -218,12 +218,12 @@ class IssueService extends BaseService
|
|
|
if ($image) {
|
|
if ($image) {
|
|
|
$image = url($image);
|
|
$image = url($image);
|
|
|
}
|
|
}
|
|
|
- // self::bettingGroupNotice($text, $buttons, $image);
|
|
|
|
|
- self::asyncBettingGroupNotice($text, $buttons, $image);
|
|
|
|
|
|
|
+ if ($pc28Switch == 0) self::asyncBettingGroupNotice($text, $buttons, $image);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 投注情况通知
|
|
// 投注情况通知
|
|
|
- BetService::statNotice($info->issue_no);
|
|
|
|
|
|
|
+ if ($pc28Switch == 0) BetService::statNotice($info->issue_no);
|
|
|
|
|
+
|
|
|
|
|
|
|
|
$replyInfo = KeyboardService::findOne(['button' => '封盘开奖']);
|
|
$replyInfo = KeyboardService::findOne(['button' => '封盘开奖']);
|
|
|
if ($replyInfo) {
|
|
if ($replyInfo) {
|