seven 1 ngày trước cách đây
mục cha
commit
9fc919d338
1 tập tin đã thay đổi với 10 bổ sung0 xóa
  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'=>'封盘成功'];
     }