deason 2 年之前
父節點
當前提交
1061406b82

+ 3 - 0
src/main/java/cn/com/qmth/examcloud/tool/service/CommonService.java

@@ -34,6 +34,9 @@ public class CommonService {
     }
 
     public User login(String domain, String loginName, String password) {
+        if (!domain.contains(".ecs.qmth.com.cn")) {
+            domain += ".ecs.qmth.com.cn";
+        }
         Map<String, Object> params = new HashMap<>();
         params.put("domain", domain);
         params.put("accountValue", loginName);

+ 3 - 4
src/main/java/cn/com/qmth/examcloud/tool/service/query_paper_struct/QueryPaperStructTask.java

@@ -59,11 +59,10 @@ public class QueryPaperStructTask {
             for (ExtractConfigVO extractConfig : extractConfigs) {
                 for (ExamPaperVO examPaper : extractConfig.getExamPaperList()) {
                     String basePaperId = examPaper.getPaper().getId();
-                    log.info("examId:{}, courseCode:{}, paperType:{}, basePaperId:{}", examId, course.getCourseCode(), examPaper.getGroupCode(), basePaperId);
                     GetPaperStructResp resp = this.getPaperStruct(examId, course.getCourseCode(), examPaper.getGroupCode(), basePaperId);
-
-                    System.out.println("========== ========== ==========");
-                    System.out.println("试卷名称:" + resp.getDefaultPaper().getName());
+                    System.out.println("\n========== ========== ==========");
+                    System.out.println(String.format("examId:%s courseCode:%s paperType:%s basePaperId:%s 试卷名称:%s",
+                            examId, course.getCourseCode(), examPaper.getGroupCode(), basePaperId, resp.getDefaultPaper().getName()));
                     System.out.println("========== ========== ==========");
                     List<DefaultQuestionGroup> questionGroupList = resp.getDefaultPaper().getQuestionGroupList();