diff --git a/application/wechat/controller/News.php b/application/wechat/controller/News.php index a34397874..a8b3e86d5 100644 --- a/application/wechat/controller/News.php +++ b/application/wechat/controller/News.php @@ -254,8 +254,7 @@ class News extends BasicAdmin $data['filter'] = ['is_to_all' => false, 'tag_id' => join(',', $post['fans_tags'])]; $data['mpnews'] = ['media_id' => $newsinfo['media_id']]; } - $wechat = WechatService::custom(); - if (false !== $wechat->massSendAll($data)) { + if (WechatService::custom()->massSendAll($data)) { LogService::write('微信管理', "图文[{$news_id}]推送成功"); $this->success('微信图文推送成功!', ''); }