From 0f9fbe46961eb09098943ec7f74faba2ef30a3c7 Mon Sep 17 00:00:00 2001 From: admin Date: Fri, 27 Oct 2023 14:32:20 +0800 Subject: [PATCH] =?UTF-8?q?edit=E6=B7=BB=E5=8A=A0jsapi?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/api/controllers/DefaultController.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/api/controllers/DefaultController.php b/modules/api/controllers/DefaultController.php index e22b646..596959c 100644 --- a/modules/api/controllers/DefaultController.php +++ b/modules/api/controllers/DefaultController.php @@ -46,6 +46,7 @@ class DefaultController extends Controller 'api/default/debug', 'api/default/update-admin', 'api/default/disclaimer-info', + 'api/default/get-jssdk', ] ] ]); @@ -276,5 +277,11 @@ class DefaultController extends Controller ]); } + /** + * @ 获取js-sdk前端所需参数 + */ + public function actionGetJssdk(){ + return $this->responseHandler($this->wechat_mp->jsapi); + } } \ No newline at end of file