mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-05-21 22:39:16 +08:00
[更新]微信第三方修复回复模式
This commit is contained in:
parent
109764ad53
commit
d9ddb1f3ad
@ -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));
|
||||
|
@ -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
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user