|
@@ -116,7 +116,11 @@ public class LoginController {
|
|
|
if (loginUserList.size()>1){
|
|
|
throw new DisabledException ( "登录名重复,请使用手机号登录" );
|
|
|
}else{
|
|
|
- username = loginUserList.get(0).getLoginName();
|
|
|
+ if(loginUserList.size()==0){
|
|
|
+ throw new DisabledException ( "未找到登陆人员信息" );
|
|
|
+ }else{
|
|
|
+ username = loginUserList.get(0).getLoginName();
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|