|
@@ -180,12 +180,6 @@ public class PhoneAuthenticationProvider extends AbstractAuthenticationProvider
|
|
|
throw new LockedException("用户已锁定");
|
|
|
}
|
|
|
|
|
|
- // 同账号,用户信息存在的情况
|
|
|
- if (!user.getUserType().contains(clientId.toUpperCase())) {
|
|
|
- // 自动添加系统默认IM帐号为好友,并自动发送通知消息
|
|
|
- sysUserService.sendSysCustomerServiceFriendMessage(userInfo.getSysUser(), clientId.toUpperCase());
|
|
|
- }
|
|
|
-
|
|
|
if (StringUtils.isNotBlank(deviceNum)) {
|
|
|
sysUserDeviceService.bindDevice(clientId, user.getId(), deviceNum);
|
|
|
}
|
|
@@ -211,6 +205,12 @@ public class PhoneAuthenticationProvider extends AbstractAuthenticationProvider
|
|
|
throw new LockedException("用户不存在");
|
|
|
}
|
|
|
|
|
|
+ // 同账号,用户信息存在的情况
|
|
|
+ if (!user.getUserType().contains(clientId.toUpperCase())) {
|
|
|
+ // 自动添加系统默认IM帐号为好友,并自动发送通知消息
|
|
|
+ sysUserService.sendSysCustomerServiceFriendMessage(userInfo.getSysUser(), clientId.toUpperCase());
|
|
|
+ }
|
|
|
+
|
|
|
user.setUpdateTime(new Date());
|
|
|
if(StringUtils.isNotEmpty(loginUserType)){
|
|
|
if (StringUtils.equalsIgnoreCase(loginUserType, "TEACHER")) {
|