From f22078f9180a2f3b365279c49a96b249bcdf8f86 Mon Sep 17 00:00:00 2001 From: Anyon Date: Fri, 29 Apr 2022 16:18:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=B0=8F=E7=A8=8B=E5=BA=8F?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E8=AF=BB=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/data/controller/api/Wxapp.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/data/controller/api/Wxapp.php b/app/data/controller/api/Wxapp.php index a6a37818f..30819f63b 100644 --- a/app/data/controller/api/Wxapp.php +++ b/app/data/controller/api/Wxapp.php @@ -43,9 +43,10 @@ class Wxapp extends Controller */ protected function initialize() { + $opt = sysdata('wxapp'); $this->cfg = [ - 'appid' => sysconf('data.wxapp_appid'), - 'appsecret' => sysconf('data.wxapp_appkey'), + 'appid' => $opt['appid'] ?? '', + 'appsecret' => $opt['appkey'] ?? '', 'cache_path' => $this->app->getRootPath() . 'runtime' . DIRECTORY_SEPARATOR . 'wechat', ]; if (empty(UserAdminService::TYPES[$this->type]['auth'])) {