From e6813ecb84cd9d5a32be0585aab6fc307204f6b2 Mon Sep 17 00:00:00 2001 From: Jason Date: Tue, 20 Sep 2022 13:39:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E4=BF=A1=E5=88=86=E4=BA=ABconfig?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/Wechat.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/controller/Wechat.php b/app/controller/Wechat.php index 3e6db8d..3d3113d 100644 --- a/app/controller/Wechat.php +++ b/app/controller/Wechat.php @@ -38,11 +38,15 @@ class Wechat public function jsSdk(): Json { $this->initWechat(); - $APIs = []; + $APIs = [ + 'updateAppMessageShareData', + 'updateTimelineShareData', + 'hideMenuItems', + ]; $url = $GLOBALS['data']['data']['url']; $this->app->jssdk->setUrl($url); - $config = $this->app->jssdk->buildConfig($APIs); + $config = $this->app->jssdk->buildConfig($APIs, false, false,false); return show(SUCCESS_MESSAGE, SUCCESS_CODE, $config); }