Commit 66a24e41 authored by 陈立彬's avatar 陈立彬

考试评分异步流程

parent f70f5be2
......@@ -48,7 +48,7 @@ public class ExamController {
private static String EXAM_REDIS_QUESTION_KEY = "EXAM_MASTER_QUESTION:%d:%s:%s";
private static String EXAM_REDIS_SESSION_KEY = "EXAM_MASTER_SESSION:%d:%s:%s";
private static String EXAM_REDIS_SESSION_KEY = "EXAM_MASTER_SESSION:%d:%s";
@GetMapping(value = "/list")
public String list() {
......@@ -227,7 +227,7 @@ public class ExamController {
@RequestParam(value = "user_answer") String userAnswer) {
String redisKey = String.format(EXAM_REDIS_SESSION_KEY, tenant, sessionId, userId);
String redisKey = String.format(EXAM_REDIS_SESSION_KEY, tenant, userId);
SingleQaResult qa = new SingleQaResult();
qa.setUserId(userId);
......@@ -252,7 +252,7 @@ public class ExamController {
@RequestParam(value = "user_id") String userId) {
String redisKey = String.format(EXAM_REDIS_SESSION_KEY, tenant, sessionId, userId);
String redisKey = String.format(EXAM_REDIS_SESSION_KEY, tenant, userId);
String redisValue = redisTemplate.opsForValue().get(redisKey);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment