|
@@ -187,7 +187,7 @@ public class ImGroupServiceImpl extends ServiceImpl<ImGroupDao, ImGroup> impleme
|
|
|
clientType = "TEACHER";
|
|
|
}
|
|
|
if (StringUtils.isNotBlank(imConfig.getAppPrefix()) && !imUserId.startsWith(imConfig.getAppPrefix())) {
|
|
|
- imUserId = MessageFormat.format("{0}:{1}:{2}", imConfig.getAppPrefix(), userId, clientType);
|
|
|
+ imUserId = MessageFormat.format("{0}_{1}_{2}", imConfig.getAppPrefix(), userId, clientType);
|
|
|
}
|
|
|
return imUserId;
|
|
|
}
|
|
@@ -200,7 +200,7 @@ public class ImGroupServiceImpl extends ServiceImpl<ImGroupDao, ImGroup> impleme
|
|
|
clientType = "TEACHER";
|
|
|
}
|
|
|
if (StringUtils.isNotBlank(imConfig.getAppPrefix()) && !imUserId.startsWith(imConfig.getAppPrefix())) {
|
|
|
- imUserId = MessageFormat.format("{0}:{1}:{2}", imConfig.getAppPrefix(), userId, clientType);
|
|
|
+ imUserId = MessageFormat.format("{0}_{1}_{2}", imConfig.getAppPrefix(), userId, clientType);
|
|
|
}
|
|
|
return imUserId;
|
|
|
}
|
|
@@ -215,7 +215,7 @@ public class ImGroupServiceImpl extends ServiceImpl<ImGroupDao, ImGroup> impleme
|
|
|
@Override
|
|
|
public String analysisImUserId(String imUserId) {
|
|
|
if (StringUtils.isNotBlank(imConfig.getAppPrefix())) {
|
|
|
- return imUserId.replace(imConfig.getAppPrefix() + ":", "");
|
|
|
+ return imUserId.replace(imConfig.getAppPrefix() + "_", "");
|
|
|
}
|
|
|
return imUserId;
|
|
|
}
|