|
|
@@ -163,21 +163,25 @@ class IssueService extends BaseService
|
|
|
|
|
|
|
|
|
$pc28Switch = Config::where('field', 'pc28_switch')->first()->val;
|
|
|
- $replyInfo = KeyboardService::findOne(['button' => '玩法规则']);
|
|
|
- if ($replyInfo) {
|
|
|
- $text = $replyInfo->reply;
|
|
|
- $buttons = json_decode($replyInfo->buttons, true);
|
|
|
- $image = $replyInfo->image;
|
|
|
- if ($image) {
|
|
|
- $image = url($image);
|
|
|
- }
|
|
|
- if (empty($buttons)) {
|
|
|
- $buttons = self::getOperateButton();
|
|
|
- }
|
|
|
|
|
|
- if ($pc28Switch == 0) self::asyncBettingGroupNotice($text, $buttons, $image);
|
|
|
+ $wanFaGuiZeTime = Cache::get("玩法规则推送时间");
|
|
|
+ $now = time();
|
|
|
+ if ($now - $wanFaGuiZeTime > (60 * 15)) {
|
|
|
+ $replyInfo = KeyboardService::findOne(['button' => '玩法规则']);
|
|
|
+ if ($replyInfo) {
|
|
|
+ $text = $replyInfo->reply;
|
|
|
+ $buttons = json_decode($replyInfo->buttons, true);
|
|
|
+ $image = $replyInfo->image;
|
|
|
+ if ($image) {
|
|
|
+ $image = url($image);
|
|
|
+ }
|
|
|
+ if (empty($buttons)) {
|
|
|
+ $buttons = self::getOperateButton();
|
|
|
+ }
|
|
|
+ Cache::put('玩法规则推送时间', time());
|
|
|
+ if ($pc28Switch == 0) self::asyncBettingGroupNotice($text, $buttons, $image);
|
|
|
+ }
|
|
|
}
|
|
|
-
|
|
|
$replyInfo = KeyboardService::findOne(['button' => '开始下注']);
|
|
|
if ($replyInfo) {
|
|
|
$text = $replyInfo->reply;
|