|
@@ -181,7 +181,7 @@ public class PhoneAuthenticationProvider extends AbstractAuthenticationProvider
|
|
|
}
|
|
|
|
|
|
// 同账号,用户信息存在的情况
|
|
|
- if (Objects.nonNull(userInfo.getSysUser())) {
|
|
|
+ if (!user.getUserType().contains(clientId.toUpperCase())) {
|
|
|
// 自动添加系统默认IM帐号为好友,并自动发送通知消息
|
|
|
sysUserService.sendSysCustomerServiceFriendMessage(userInfo.getSysUser(), clientId.toUpperCase());
|
|
|
}
|