diff --git a/application/wechat/controller/api/Push.php b/application/wechat/controller/api/Push.php index a4cdeddd9..2e9042fd7 100644 --- a/application/wechat/controller/api/Push.php +++ b/application/wechat/controller/api/Push.php @@ -95,8 +95,8 @@ class Push extends Controller { try { if ($this->request->has('receive', 'post') && WechatService::getType() === 'thr') { - $this->forceJson = false; // 强制返回JSON到服务端再转发 - $this->forceCustom = true; // 强制使用客户消息模式 + $this->forceJson = true; // 强制返回JSON到Service转发 + $this->forceCustom = false; // 强制使用客服消息模式推送 $this->appid = $this->request->post('appid', '', null); $this->openid = $this->request->post('openid', '', null); $this->encrypt = boolval($this->request->post('encrypt', 0)); diff --git a/application/wechat/service/WechatService.php b/application/wechat/service/WechatService.php index 65eec17cc..a1926974b 100644 --- a/application/wechat/service/WechatService.php +++ b/application/wechat/service/WechatService.php @@ -118,6 +118,7 @@ class WechatService extends \We * @param string $type 接口类型 * @param array $config 微信配置 * @return mixed + * @throws \SoapFault * @throws \think\Exception * @throws \think\exception\PDOException */