修复 首页查询错误

This commit is contained in:
mkm 2023-04-07 16:37:53 +08:00
parent 1a18ed0a83
commit 1fcf92094d

View File

@ -90,7 +90,7 @@ class Index extends BaseController
View::assign('month_order',$Month_order);
return View('main2');
}
$where=[];
// 如果登录ID不是超管的话
if ($this->adminInfo['id'] != 1){
@ -111,10 +111,7 @@ class Index extends BaseController
}
}
}else{
$where=[];
}
// 获取**数量
$num = InformationUserMsg::where($where)->count();