|
|
@@ -9,6 +9,7 @@ import cn.seecoder.judgement.vo.JudgedAnswersVO;
|
|
|
import cn.seecoder.judgement.vo.question.BaseQuestionVO;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
+import java.time.ZoneOffset;
|
|
|
import java.util.*;
|
|
|
import java.util.concurrent.atomic.AtomicInteger;
|
|
|
|
|
|
@@ -57,14 +58,14 @@ public class JudgementServiceImpl implements JudgementService {
|
|
|
record.setQuestionId(questionId);
|
|
|
record.setPass(isTrue);
|
|
|
record.setStudentAnswer(String.valueOf(answer));
|
|
|
- record.setStartAt(answerRecordDTO.getStartAt());
|
|
|
- record.setFinishAt(answerRecordDTO.getEndAt());
|
|
|
+ record.setStartAt(answerRecordDTO.getStartAt().toInstant(ZoneOffset.ofHours(8)));
|
|
|
+ record.setFinishAt(answerRecordDTO.getEndAt().toInstant(ZoneOffset.ofHours(8)));
|
|
|
|
|
|
judgedAnswerRecords.add(record);
|
|
|
});
|
|
|
JudgedAnswersVO res = new JudgedAnswersVO(judgedAnswers);
|
|
|
|
|
|
- SeecoderBokClient seecoderBokClient = new SeecoderBokClient("http://bok.seecoder.cn", 0);
|
|
|
+ SeecoderBokClient seecoderBokClient = new SeecoderBokClient("https://bok.seec.seecoder.cn");
|
|
|
List<RecordVO> recordVOS = seecoderBokClient.createUserRecord(judgedAnswerRecords);
|
|
|
|
|
|
System.out.println("results are as follows:");
|