This commit is contained in:
zhouwentao 2025-06-26 08:40:10 +08:00
parent 45f04ecd12
commit aecf4c570d
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ public class SysUserOnlineController {
//验证用户名是否与传过来的用户名相同
boolean isMatchUsername=true;
//判断用户名是否为空并且当前循环的用户不包含传过来的用户名那么就设成false
if((oConvertUtils.isNotEmpty(username) && !loginUser.getUsername().contains(username)) || (oConvertUtils.isNotEmpty(phone) && oConvertUtils.isNotEmpty(loginUser.getPhone()) && !loginUser.getPhone().contains(phone))){
if((oConvertUtils.isNotEmpty(username) && !loginUser.getUsername().contains(username)) || (oConvertUtils.isNotEmpty(loginUser.getPhone()) && !loginUser.getPhone().contains(phone))){
isMatchUsername = false;
}
if(isMatchUsername){