From 8f1494857349394bfa5849d980a234e11f382142 Mon Sep 17 00:00:00 2001 From: Anyon Date: Mon, 30 Dec 2019 17:55:52 +0800 Subject: [PATCH] Update WechatService.php --- app/wechat/service/WechatService.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/wechat/service/WechatService.php b/app/wechat/service/WechatService.php index 792f28bd7..65dcb2b66 100644 --- a/app/wechat/service/WechatService.php +++ b/app/wechat/service/WechatService.php @@ -175,6 +175,7 @@ class WechatService extends Service /** * 获取公众号配置参数 * @return array + * @throws \think\Exception * @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DbException * @throws \think\db\exception\ModelNotFoundException @@ -183,7 +184,7 @@ class WechatService extends Service { $options = [ 'token' => sysconf('wechat.token'), - 'appid' => sysconf('wechat.appid'), + 'appid' => $this->getAppid(), 'appsecret' => sysconf('wechat.appsecret'), 'encodingaeskey' => sysconf('wechat.encodingaeskey'), 'mch_id' => sysconf('wechat.mch_id'),