This commit is contained in:
wangjinlei
2024-11-01 15:40:40 +08:00
parent b1446dc1e6
commit ef91e9de61
5 changed files with 41 additions and 4 deletions

View File

@@ -901,7 +901,7 @@ class User extends Base
$where['state'] = 0;
// $where['user_id'] = ['not in',$black_list];
if ($data['username'] != "") {
$where["account|email"] = ['like','%' . trim($data['username'] . '%')];
$where["account|email|realname"] = ['like','%' . trim($data['username'] . '%')];
}
if($data['role']==1){
$where['type'] = 2;