|
@@ -29,7 +29,10 @@ class BaseController extends PublicController
|
|
|
} else {
|
|
} else {
|
|
|
$staff = StaffService::getById($staffId);
|
|
$staff = StaffService::getById($staffId);
|
|
|
if (empty($staff)) {
|
|
if (empty($staff)) {
|
|
|
- util::fail('没有找到管理员');
|
|
|
|
|
|
|
+ util::logout();
|
|
|
|
|
+ }
|
|
|
|
|
+ if($staff->status==0){
|
|
|
|
|
+ util::logout("账号已冻结");
|
|
|
}
|
|
}
|
|
|
$this->staff = $staff;
|
|
$this->staff = $staff;
|
|
|
$this->user = $staff;
|
|
$this->user = $staff;
|
|
@@ -41,4 +44,4 @@ class BaseController extends PublicController
|
|
|
return parent::beforeAction($action);
|
|
return parent::beforeAction($action);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-}
|
|
|
|
|
|
|
+}
|