seven 1 天之前
父节点
当前提交
9fc919d338
共有 1 个文件被更改,包括 10 次插入0 次删除
  1. 10 0
      app/Services/IssueService.php

+ 10 - 0
app/Services/IssueService.php

@@ -193,6 +193,16 @@ class IssueService extends BaseService
 
         $info->status = self::model()::STATUS_CLOSE;
         $info->save();
+        $replyInfo = KeyboardService::findOne(['button' => '停止下注']);
+        if($replyInfo){
+            $text = $replyInfo->reply;
+            $buttons = json_decode($replyInfo->buttons,true);
+            $image = $replyInfo->image;
+            if($image){
+                $image = url($image);
+            }
+            self::bettingGroupNotice($text, $buttons, $image);
+        }
         return ['code'=>self::YES, 'msg'=>'封盘成功'];
     }