添加小程序配置和支付配置

This commit is contained in:
liu
2026-08-06 10:02:11 +08:00
parent 64926e9899
commit b33978a0c6
2 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -79,7 +79,7 @@ class WechatService
protected function app(): Application
{
if ($this->app === null) {
$config = (array) config('services.wechat.mini', []);
$config = (array) site_config('wechatMini', []);
if (empty($config['appid']) || empty($config['secret'])) {
throw new RepositoryException('微信小程序尚未配置(WECHAT_MINI_APPID / WECHAT_MINI_SECRET');
}