[更新]微信第三方修复回复模式

This commit is contained in:
Anyon 2019-07-15 22:12:28 +08:00
parent 109764ad53
commit d9ddb1f3ad
2 changed files with 3 additions and 2 deletions

View File

@ -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));

View File

@ -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
*/