|
|
@@ -268,11 +268,12 @@ public class ServerEventListenerImpl implements ServerEventListener {
|
|
|
* </pre>
|
|
|
*/
|
|
|
private ImLoginSuccessDTO parseCompoundUserId(String compoundUserId,String roleType) {
|
|
|
+ log.info("token:{}",roleType);
|
|
|
ImLoginSuccessDTO result = null;
|
|
|
if (compoundUserId != null && compoundUserId.contains("-")) {
|
|
|
String[] parts = compoundUserId.split("-", 3); // 分割成3部分
|
|
|
if (parts.length >= 3) {
|
|
|
- result = ImLoginSuccessDTO.of(parts[0], parts[1],parts[2],roleType); // userId, tenantId-clinicId
|
|
|
+ result = ImLoginSuccessDTO.of(parts[0], parts[1],parts[2],parts[3]); // userId, tenantId-clinicId
|
|
|
}
|
|
|
}
|
|
|
return result;
|