This commit is contained in:
zhouwentao 2025-06-26 08:54:58 +08:00
parent b84b6e4f63
commit 597a5093d0
1 changed files with 2 additions and 1 deletions

View File

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