|
|
@@ -7,6 +7,7 @@ import cn.seecoder.judgement.service.JudgementService;
|
|
|
import cn.seecoder.judgement.service.QuestionService;
|
|
|
import cn.seecoder.judgement.vo.JudgedAnswersVO;
|
|
|
import cn.seecoder.judgement.vo.question.BaseQuestionVO;
|
|
|
+import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import java.time.ZoneOffset;
|
|
|
@@ -20,6 +21,8 @@ import java.util.concurrent.atomic.AtomicInteger;
|
|
|
@Service
|
|
|
public class JudgementServiceImpl implements JudgementService {
|
|
|
private final QuestionService questionService;
|
|
|
+ @Value("${bok.host}")
|
|
|
+ private String bokHost;
|
|
|
|
|
|
public JudgementServiceImpl(QuestionService questionService){
|
|
|
this.questionService = questionService;
|
|
|
@@ -65,7 +68,7 @@ public class JudgementServiceImpl implements JudgementService {
|
|
|
});
|
|
|
JudgedAnswersVO res = new JudgedAnswersVO(judgedAnswers);
|
|
|
|
|
|
- SeecoderBokClient seecoderBokClient = new SeecoderBokClient("https://bok.seec.seecoder.cn");
|
|
|
+ SeecoderBokClient seecoderBokClient = new SeecoderBokClient(bokHost);
|
|
|
List<RecordVO> recordVOS = seecoderBokClient.createUserRecord(judgedAnswerRecords);
|
|
|
|
|
|
System.out.println("results are as follows:");
|