feat:REQ-1419 代码逻辑优化
This commit is contained in:
parent
50c59e7cde
commit
86a447a3c6
@ -40,7 +40,6 @@ public class NotifyChannelServiceImpl implements INotifyService {
|
||||
if (robotInfoResp == null) {
|
||||
return;
|
||||
}
|
||||
log.info("机器人信息发生变更,robotId:{},正在通知到IM系统", robotInfoResp.getRobotId());
|
||||
HashMap<String, Object> userProfileMap = Maps.newHashMap();
|
||||
userProfileMap.put("accountType", AccountTypeEnum.ROBOT.getCode());
|
||||
List<RobotTagResp> robotTags = robotInfoResp.getRobotTagList();
|
||||
@ -57,14 +56,14 @@ public class NotifyChannelServiceImpl implements INotifyService {
|
||||
updateProfile.setAccid(robotInfoResp.getImAccount());
|
||||
updateProfile.setIcon(robotInfoResp.getHeadImageUrl());
|
||||
updateProfile.setName(robotInfoResp.getNickName());
|
||||
log.info("更新机器人:{},网易云信账户信息", JSONUtil.toJsonStr(updateProfile));
|
||||
log.info("更新机器人到网易云信账户:{}", JSONUtil.toJsonStr(updateProfile));
|
||||
channelProvider.updateAccountProfile(updateProfile);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void notifyUserAccountChange(String imAccountId, String nickName,String iconUrl) {
|
||||
public void notifyUserAccountChange(String imAccountId, String nickName, String iconUrl) {
|
||||
HashMap<String, Object> userProfileMap = Maps.newHashMap();
|
||||
userProfileMap.put("accountType", AccountTypeEnum.USER.getCode());
|
||||
String extJson = JSONUtil.toJsonStr(userProfileMap);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user