暂时让运营人员开启本地生活栏目
This commit is contained in:
parent
56a6e0f30f
commit
077748f231
@ -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' => '',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user