暂时让运营人员开启本地生活栏目

This commit is contained in:
wangxiaowei 2024-09-29 09:01:07 +08:00
parent 56a6e0f30f
commit 077748f231
2 changed files with 10 additions and 2 deletions

@ -128,7 +128,7 @@ class Index extends Api
// 通用配置
public function config()
{
$data = IndexLogic::config();
$data = IndexLogic::config($this->user_id);
return JsonServer::success('获取成功', $data);
}

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