|
@@ -9,8 +9,7 @@ import com.qmth.exam.reserve.bean.applytask.CurrentApplyTaskVO;
|
|
import com.qmth.exam.reserve.bean.login.LoginReq;
|
|
import com.qmth.exam.reserve.bean.login.LoginReq;
|
|
import com.qmth.exam.reserve.bean.login.LoginUser;
|
|
import com.qmth.exam.reserve.bean.login.LoginUser;
|
|
import com.qmth.exam.reserve.bean.login.WechatLoginReq;
|
|
import com.qmth.exam.reserve.bean.login.WechatLoginReq;
|
|
-import com.qmth.exam.reserve.cache.CacheConstants;
|
|
|
|
-import com.qmth.exam.reserve.cache.LoginSessionManager;
|
|
|
|
|
|
+import com.qmth.exam.reserve.cache.impl.LoginSessionManager;
|
|
import com.qmth.exam.reserve.entity.ApplyTaskEntity;
|
|
import com.qmth.exam.reserve.entity.ApplyTaskEntity;
|
|
import com.qmth.exam.reserve.entity.StudentEntity;
|
|
import com.qmth.exam.reserve.entity.StudentEntity;
|
|
import com.qmth.exam.reserve.entity.UserEntity;
|
|
import com.qmth.exam.reserve.entity.UserEntity;
|
|
@@ -73,7 +72,7 @@ public class AuthServiceImpl implements AuthorizationService<LoginUser>, AuthSer
|
|
loginUser.setOrgId(user.getOrgId());
|
|
loginUser.setOrgId(user.getOrgId());
|
|
loginUser.setCategoryId(user.getCategoryId());
|
|
loginUser.setCategoryId(user.getCategoryId());
|
|
|
|
|
|
- loginUser.setSessionId(CacheConstants.CACHE_USER_LOGIN + user.getId());
|
|
|
|
|
|
+ loginUser.setSessionId(LoginSessionManager.USER_LOGIN + user.getId());
|
|
loginUser.setToken(FastUUID.get());
|
|
loginUser.setToken(FastUUID.get());
|
|
loginSessionManager.addLoginSession(loginUser);
|
|
loginSessionManager.addLoginSession(loginUser);
|
|
|
|
|
|
@@ -117,7 +116,7 @@ public class AuthServiceImpl implements AuthorizationService<LoginUser>, AuthSer
|
|
loginUser.setApplyTaskId(student.getApplyTaskId());
|
|
loginUser.setApplyTaskId(student.getApplyTaskId());
|
|
loginUser.setOpenId(student.getOpenId());
|
|
loginUser.setOpenId(student.getOpenId());
|
|
|
|
|
|
- loginUser.setSessionId(CacheConstants.CACHE_STUDENT_LOGIN + student.getId());
|
|
|
|
|
|
+ loginUser.setSessionId(LoginSessionManager.STUDENT_LOGIN + student.getId());
|
|
loginUser.setToken(FastUUID.get());
|
|
loginUser.setToken(FastUUID.get());
|
|
loginSessionManager.addLoginSession(loginUser);
|
|
loginSessionManager.addLoginSession(loginUser);
|
|
|
|
|
|
@@ -152,7 +151,7 @@ public class AuthServiceImpl implements AuthorizationService<LoginUser>, AuthSer
|
|
loginUser.setApplyTaskId(student.getApplyTaskId());
|
|
loginUser.setApplyTaskId(student.getApplyTaskId());
|
|
loginUser.setOpenId(student.getOpenId());
|
|
loginUser.setOpenId(student.getOpenId());
|
|
|
|
|
|
- loginUser.setSessionId(CacheConstants.CACHE_STUDENT_LOGIN + student.getId());
|
|
|
|
|
|
+ loginUser.setSessionId(LoginSessionManager.STUDENT_LOGIN + student.getId());
|
|
loginUser.setToken(FastUUID.get());
|
|
loginUser.setToken(FastUUID.get());
|
|
loginSessionManager.addLoginSession(loginUser);
|
|
loginSessionManager.addLoginSession(loginUser);
|
|
|
|
|