diff --git a/plugin/think-plugs-wechat/src/service/WechatService.php b/plugin/think-plugs-wechat/src/service/WechatService.php index 77dd6a267..1316bf889 100644 --- a/plugin/think-plugs-wechat/src/service/WechatService.php +++ b/plugin/think-plugs-wechat/src/service/WechatService.php @@ -191,7 +191,7 @@ class WechatService extends Service 'encodingaeskey' => sysconf('wechat.encodingaeskey'), 'cache_path' => syspath('runtime/wechat'), ]; - return $ispay ? $config : static::withWxpayCert($config); + return $ispay ? static::withWxpayCert($config) : $config; } /**