From 077748f231069f9c698f1dad61d9812a728e104b Mon Sep 17 00:00:00 2001 From: wangxiaowei Date: Sun, 29 Sep 2024 09:01:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9A=82=E6=97=B6=E8=AE=A9=E8=BF=90=E8=90=A5?= =?UTF-8?q?=E4=BA=BA=E5=91=98=E5=BC=80=E5=90=AF=E6=9C=AC=E5=9C=B0=E7=94=9F?= =?UTF-8?q?=E6=B4=BB=E6=A0=8F=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/Index.php | 2 +- app/api/logic/IndexLogic.php | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/app/api/controller/Index.php b/app/api/controller/Index.php index b0a7f48f..956eaba6 100755 --- a/app/api/controller/Index.php +++ b/app/api/controller/Index.php @@ -128,7 +128,7 @@ class Index extends Api // 通用配置 public function config() { - $data = IndexLogic::config(); + $data = IndexLogic::config($this->user_id); return JsonServer::success('获取成功', $data); } diff --git a/app/api/logic/IndexLogic.php b/app/api/logic/IndexLogic.php index 43c27f62..3b191a4e 100755 --- a/app/api/logic/IndexLogic.php +++ b/app/api/logic/IndexLogic.php @@ -796,7 +796,7 @@ class IndexLogic extends Logic } - public static function config() + public static function config($user_id) { $navigation = Db::name('dev_navigation') ->field('name,status,page_path,selected_icon,un_selected_icon') @@ -809,6 +809,14 @@ class IndexLogic extends Logic return UrlServer::getFileUrl($value); }) ->select(); + + if ($user_id == 215) { + foreach ($navigation as &$v) { + if ($v['name'] == '本地生活') { + $v['status'] = 1; + } + } + } $share_h5 = ConfigServer::get('share', 'h5', [ 'h5_share_title' => '', 'h5_share_intro' => '',