|
@@ -50,6 +50,7 @@ import cn.com.qmth.examcloud.starters.crypto.common.CryptoGroup;
|
|
|
import cn.com.qmth.examcloud.starters.crypto.common.CryptoHelper;
|
|
|
import cn.com.qmth.examcloud.starters.crypto.common.FieldPair;
|
|
|
import cn.com.qmth.examcloud.starters.crypto.service.CryptoFactory;
|
|
|
+import cn.com.qmth.examcloud.support.CacheConstants;
|
|
|
import cn.com.qmth.examcloud.support.Constants;
|
|
|
import cn.com.qmth.examcloud.support.cache.CacheHelper;
|
|
|
import cn.com.qmth.examcloud.support.cache.bean.*;
|
|
@@ -1015,18 +1016,16 @@ public class ExamControlServiceImpl implements ExamControlService {
|
|
|
|
|
|
private Map<String, Long> parseUserKey(String key) {
|
|
|
Map<String, Long> result = new HashMap<>();
|
|
|
-
|
|
|
if (StringUtils.isEmpty(key)) {
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
- // 格式:U_S_111_111
|
|
|
- String[] values = key.trim().split("_");
|
|
|
- if (values.length == 4) {
|
|
|
- result.put("rootOrgId", Long.valueOf(values[2]));
|
|
|
- result.put("userId", Long.valueOf(values[3]));
|
|
|
+ // 格式示例:$SS:S_111_222
|
|
|
+ String[] values = key.trim().replace(CacheConstants.CACHE_LOGIN_SESSION, "").split("_");
|
|
|
+ if (values.length == 3) {
|
|
|
+ result.put("rootOrgId", Long.valueOf(values[1]));
|
|
|
+ result.put("userId", Long.valueOf(values[2]));
|
|
|
}
|
|
|
-
|
|
|
return result;
|
|
|
}
|
|
|
|