Update WechatService.php

This commit is contained in:
Anyon 2019-12-30 17:55:52 +08:00
parent fb4976501a
commit 8f14948573

View File

@ -175,6 +175,7 @@ class WechatService extends Service
/** /**
* 获取公众号配置参数 * 获取公众号配置参数
* @return array * @return array
* @throws \think\Exception
* @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DbException * @throws \think\db\exception\DbException
* @throws \think\db\exception\ModelNotFoundException * @throws \think\db\exception\ModelNotFoundException
@ -183,7 +184,7 @@ class WechatService extends Service
{ {
$options = [ $options = [
'token' => sysconf('wechat.token'), 'token' => sysconf('wechat.token'),
'appid' => sysconf('wechat.appid'), 'appid' => $this->getAppid(),
'appsecret' => sysconf('wechat.appsecret'), 'appsecret' => sysconf('wechat.appsecret'),
'encodingaeskey' => sysconf('wechat.encodingaeskey'), 'encodingaeskey' => sysconf('wechat.encodingaeskey'),
'mch_id' => sysconf('wechat.mch_id'), 'mch_id' => sysconf('wechat.mch_id'),