|
@@ -251,10 +251,8 @@ public class ImGroupServiceImpl extends ServiceImpl<ImGroupDao, ImGroup> impleme
|
|
|
if(userRole.RoleTeacher == userRole){
|
|
|
clientType = "TEACHER";
|
|
|
}
|
|
|
- if (StringUtils.isNotBlank(imConfig.getAppPrefix()) && !imUserId.startsWith(imConfig.getAppPrefix())) {
|
|
|
- imUserId = MessageFormat.format("{0}_{1}_{2}", imConfig.getAppPrefix(), userId.toString(), clientType);
|
|
|
- }
|
|
|
- return imUserId;
|
|
|
+
|
|
|
+ return getImUserId(imUserId,clientType);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
@@ -264,10 +262,9 @@ public class ImGroupServiceImpl extends ServiceImpl<ImGroupDao, ImGroup> impleme
|
|
|
if(clientEnum.TEACHER == clientEnum){
|
|
|
clientType = "TEACHER";
|
|
|
}
|
|
|
- if (StringUtils.isNotBlank(imConfig.getAppPrefix()) && !imUserId.startsWith(imConfig.getAppPrefix())) {
|
|
|
- imUserId = MessageFormat.format("{0}_{1}_{2}", imConfig.getAppPrefix(), userId.toString(), clientType);
|
|
|
- }
|
|
|
- return imUserId;
|
|
|
+
|
|
|
+
|
|
|
+ return getImUserId(imUserId,clientType);
|
|
|
}
|
|
|
|
|
|
|