update serve/app/common.php.
Signed-off-by: 姚PD <13558507+yao-shipeng@user.noreply.gitee.com>
This commit is contained in:
parent
cd7b3afcd3
commit
47744f266b
@ -945,17 +945,7 @@ function getUserRoot() {
|
|||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//获取组织零售单配置
|
|
||||||
function getFrameDeploy(){
|
|
||||||
$userFrame=userInfo(getUserID(),'frame');
|
|
||||||
$frame=db('frame')->where([['id','=',$userFrame]])->find();
|
|
||||||
$deploy=db('deploy')->where([['frame','=',$frame['id']]])->find();
|
|
||||||
while ($frame['pid']!=-1 && empty($deploy)){
|
|
||||||
$frame=db('frame')->where([['id','=',$frame['pid']]])->find();
|
|
||||||
$deploy=db('deploy')->where([['frame','=',$frame['id']]])->find();
|
|
||||||
}
|
|
||||||
return empty($deploy)?null:json_decode($deploy['source'],true);
|
|
||||||
}
|
|
||||||
|
|
||||||
//获用户权限菜单数据
|
//获用户权限菜单数据
|
||||||
function getRootMemu() {
|
function getRootMemu() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user