|
@@ -1,9 +1,7 @@
|
|
|
package cn.com.qmth.examcloud.ws.starter.core;
|
|
|
|
|
|
import cn.com.qmth.examcloud.api.commons.security.bean.User;
|
|
|
-import cn.com.qmth.examcloud.api.commons.security.bean.UserType;
|
|
|
import cn.com.qmth.examcloud.commons.util.JsonUtil;
|
|
|
-import cn.com.qmth.examcloud.commons.util.StringUtil;
|
|
|
import com.google.common.collect.Maps;
|
|
|
import org.apache.commons.io.IOUtils;
|
|
|
import org.slf4j.Logger;
|
|
@@ -87,21 +85,6 @@ public class WebSocketHelper {
|
|
|
return session;
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * 获取 session
|
|
|
- *
|
|
|
- * @param path
|
|
|
- * @param rootOrgId
|
|
|
- * @param userType
|
|
|
- * @param userId
|
|
|
- * @return
|
|
|
- * @author WANGWEI
|
|
|
- */
|
|
|
- public static Session getSession(String path, Long rootOrgId, UserType userType, Long userId) {
|
|
|
- String key = StringUtil.join("U_", userType.getCode(), "_", rootOrgId, "_", userId);
|
|
|
- return getSession(path, key);
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* 获取 SessionInfo
|
|
|
*
|