diff --git a/hyhproject/common/model/Users.php b/hyhproject/common/model/Users.php index dc01756..f1701d3 100755 --- a/hyhproject/common/model/Users.php +++ b/hyhproject/common/model/Users.php @@ -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'].',禁用时间:永久'); }