From 0a9c6f0fe781f9d2b712a305e4d487b777b85261 Mon Sep 17 00:00:00 2001 From: Anyon Date: Tue, 16 Jun 2020 17:07:00 +0800 Subject: [PATCH] Update Push.php --- app/wechat/controller/api/Push.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/wechat/controller/api/Push.php b/app/wechat/controller/api/Push.php index 8569c4168..318d7d4ec 100644 --- a/app/wechat/controller/api/Push.php +++ b/app/wechat/controller/api/Push.php @@ -93,7 +93,7 @@ class Push extends Controller public function index() { try { - if ($this->request->has('json', 'post') && WechatService::instance()->getType() === 'thr') { + if (WechatService::instance()->getType() === 'thr') { $this->forceJson = true; // 强制回复 JSON 到 SERVICE $this->forceCustom = false; // 强制使用客服消息模式推送 $this->appid = $this->request->post('appid', '', null);