|
|
@@ -252,9 +252,8 @@ class AuthController extends PublicController
|
|
|
if ($shopAdmin->status == 0) {
|
|
|
util::fail("您的账号已冻结");
|
|
|
}
|
|
|
- $shopId = $shopAdmin->shopId ?? 0;
|
|
|
- if (empty($shopId)) {
|
|
|
- util::fail('您不是管理员');
|
|
|
+ if ($shopAdmin->delStatus == 1) {
|
|
|
+ util::fail("您的账号已删除");
|
|
|
}
|
|
|
$token = jwt::getNewToken($adminId);
|
|
|
$shopAdmin->lastLogin = date("Y-m-d H:i:s");
|