|
@@ -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'=>'开始下注'];
|
|
|
}
|