账号注销登录提示

This commit is contained in:
Jerry Yan 2020-08-22 21:54:57 +08:00
parent 252a83f578
commit ccf07ecb2f

View File

@ -168,8 +168,11 @@ class Users extends Base{
->where(["dataFlag"=>1])
->find();
if(isset($rs['userStatus']) && 0 == $rs['userStatus']){//禁用状态
$lockInfo = Db::name('user_lock')->where(['userId'=>$rs['userId']])->field('lockReason,lockTime,createTime')->order('id DESC')->find();
$lockInfo = Db::name('user_lock')->where(['userId'=>$rs['userId']])->field('adminId,lockReason,lockTime,createTime')->order('id DESC')->find();
if($lockInfo){
if(0 == $lockInfo['adminId']){
return WSTReturn($lockInfo['lockReason']);
}
if(0 == $lockInfo['lockTime']){
return WSTReturn("账号已禁用,禁用原因:".$lockInfo['lockReason'].',禁用时间:永久');
}