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' => '',