修复 首页查询错误
This commit is contained in:
parent
1a18ed0a83
commit
1fcf92094d
@ -90,7 +90,7 @@ class Index extends BaseController
|
|||||||
View::assign('month_order',$Month_order);
|
View::assign('month_order',$Month_order);
|
||||||
return View('main2');
|
return View('main2');
|
||||||
}
|
}
|
||||||
|
$where=[];
|
||||||
// 如果登录ID不是超管的话
|
// 如果登录ID不是超管的话
|
||||||
if ($this->adminInfo['id'] != 1){
|
if ($this->adminInfo['id'] != 1){
|
||||||
|
|
||||||
@ -111,10 +111,7 @@ class Index extends BaseController
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}else{
|
|
||||||
$where=[];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取**数量
|
// 获取**数量
|
||||||
$num = InformationUserMsg::where($where)->count();
|
$num = InformationUserMsg::where($where)->count();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user