cody 2 years ago
parent f3e21a7d15
commit 95afc7deec

@ -110,7 +110,6 @@ class HomeController extends CommonController
$roleId = Role::where('name', 'like', '%首页统计%')->where('guard_name', 'admin')->value('id');
$tongji = DB::table('model_has_roles')->where('role_id', $roleId)
->where('model_type', 'App\Admin')->where('model_id', $userId)->count();
dump($lies);
if (is_mobile() || empty($tongji)) {
return view($this->bladePath . ".mobile_home");
} else {

Loading…
Cancel
Save