From d06ac577fe5f57dd3040318692b81ba2678d7716 Mon Sep 17 00:00:00 2001 From: Jason Date: Fri, 9 Sep 2022 11:58:34 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E8=8E=B7=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/Wechat.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controller/Wechat.php b/app/controller/Wechat.php index ec506a3..3ae8a2b 100644 --- a/app/controller/Wechat.php +++ b/app/controller/Wechat.php @@ -4,6 +4,7 @@ namespace app\controller; use EasyWeChat\Factory; use EasyWeChat\OfficialAccount\Application; +use think\facade\Config; class Wechat { @@ -17,7 +18,7 @@ class Wechat */ private function initWechat() { - $this->app = Factory::officialAccount(config('wechat')); + $this->app = Factory::officialAccount(Config::get('wechat')); } /**