Browse Source

fix: delete System.out.println

haha 4 years ago
parent
commit
2b7b4d55b7

+ 0 - 2
seec-oj-server/src/main/java/cn/seecoder/ojserver/service/impl/JudgeServiceImpl.java

@@ -37,9 +37,7 @@ public class JudgeServiceImpl implements JudgeService {
             judgeDTO.setMemoryLimit(problem.getMemoryLimit());
             judgeDTO.setTimeLimit(problem.getTimeLimit());
             List<String> inputList = testCaseList.stream().map(TestCase::getInput).collect(Collectors.toList());
-            System.out.println(inputList);
             List<String> outputList = testCaseList.stream().map(TestCase::getOutput).collect(Collectors.toList());
-            System.out.println(outputList);
             judgeDTO.setInputList(inputList);
             judgeDTO.setOutputList(outputList);
 //            judgeDTO.setInputList(question.getInputOutputMapping().entrySet().stream().map(Map.Entry<String, String>::getKey).collect(Collectors.toList()));

+ 0 - 2
seec-oj-server/src/main/java/cn/seecoder/ojserver/utils/thirdparty/impl/CodeJudgeThirdPartyServiceImpl.java

@@ -30,8 +30,6 @@ public class CodeJudgeThirdPartyServiceImpl implements CodeJudgeThirdPartyServic
     @Override
     public Optional<JudgeResult> judgeCodeQuestionAnswers(JudgeDTO judgeDTO) {
         try {
-            judgeDTO.setTimeLimit(1000);
-            System.out.println(judgeDTO);
             return Optional.of(client.judge(judgeDTO));
         } catch (CodeJudgeSystemException judgementException) {
             return Optional.empty();

+ 24 - 0
seec-oj-server/src/main/resources/application-test.yml

@@ -0,0 +1,24 @@
+server:
+  port: 8080
+spring:
+  datasource:
+    url: jdbc:mysql://localhost:3306/coder_oj?useUnicode=true&characterEncoding=UTF-8&useSSL=false
+    username: root
+    password: root
+    driver-class-name: com.mysql.cj.jdbc.Driver
+  jpa:
+    hibernate:
+      naming:
+        physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
+      ddl-auto: update
+    show-sql: false
+seec-bok-client:
+  host: https://bok.seec.seecoder.cn
+
+objective-judgement-client:
+  host: https://seecoder-judgement.seec.seecoder.cn
+
+code-judgement-client:
+  host: https://oj.seec.seecoder.cn
+
+