From 0274d101f5c72389829a883853fe1f878257a075 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Wed, 18 Oct 2023 09:52:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20app/controller/api/Auth.ph?= =?UTF-8?q?p?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 小程序判断 --- app/controller/api/Auth.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controller/api/Auth.php b/app/controller/api/Auth.php index 7293d19b..1f576a3a 100644 --- a/app/controller/api/Auth.php +++ b/app/controller/api/Auth.php @@ -358,7 +358,8 @@ class Auth extends BaseController $thirdList[] = $temp; } $data['thirdparty'] = $thirdList; - $arr=env('APP_SHOW')??[]; + $arr=env('APP_SHOW')??''; + $arr=explode(',',$arr); if(in_array($user['uid'],$arr )){ $data['show_controller_applet']=true; }else{