|
@@ -84,6 +84,9 @@ abstract class UserBaseController
|
|
}
|
|
}
|
|
|
|
|
|
$this->user = UserModel::where('id',$userId)->find();
|
|
$this->user = UserModel::where('id',$userId)->find();
|
|
|
|
+ if (empty($this->user)) {
|
|
|
|
+ my_redirect('/login/index');
|
|
|
|
+ }
|
|
if ($this->user->is_perfect == 2) {
|
|
if ($this->user->is_perfect == 2) {
|
|
my_redirect('/login/perfect');
|
|
my_redirect('/login/perfect');
|
|
}
|
|
}
|