seven 4 days ago
parent
commit
aca913fe16
1 changed files with 8 additions and 2 deletions
  1. 8 2
      app/Services/IssueService.php

+ 8 - 2
app/Services/IssueService.php

@@ -154,14 +154,20 @@ class IssueService extends BaseService
             $text = $replyInfo->reply;
             $buttons = json_decode($replyInfo->buttons,true);
             $image = $replyInfo->image;
-            self::bettingGroupNotice($text, $buttons, url($image));
+            if($image){
+                $image = url($image);
+            }
+            self::bettingGroupNotice($text, $buttons, $image);
         }
         $replyInfo = KeyboardService::findOne(['button' => '玩法规则']);
         if($replyInfo){
             $text = $replyInfo->reply;
             $buttons = json_decode($replyInfo->buttons,true);
             $image = $replyInfo->image;
-            self::bettingGroupNotice($text, $buttons, url($image));
+            if($image){
+                $image = url($image);
+            }
+            self::bettingGroupNotice($text, $buttons, $image);
         }
         return ['code'=>self::YES, 'msg'=>'开始下注'];
     }