xiatian 1 year ago
parent
commit
8c0b71d013

+ 10 - 10
src/main/java/cn/com/qmth/importpaper/ClearProp.java

@@ -14,17 +14,17 @@ import okhttp3.Response;
 public class ClearProp {
 
 	private static Logger logger = LogManager.getLogger(ClearProp.class);
-//	private static String batch = "230517";
-//	private static String host = "https://ynou.exam-cloud.cn";
-//	private static String rootOrgId = "17351";
-//	private static String key = "U_C_17351_646523";
-//	private static String token = "4982461411c04d15a26cc2130a373a6f";
+	private static String batch = "230821";
+	private static String host = "http://192.168.1.249:8008";
+	private static String rootOrgId = "17351";
+	private static String key = "$SS:C_17351_646523";
+	private static String token = "44c75d3e15fa4f2ea5d2f52237d06199";
 	
-	private static String batch = "230517";
-	private static String host = "http://localhost:8008";
-	private static String rootOrgId = "0";
-	private static String key = "$SS:C_0_8";
-	private static String token = "78a3b0a6ea9b43ac8285481fd2df8d80";
+//	private static String batch = "230517";
+//	private static String host = "http://localhost:8008";
+//	private static String rootOrgId = "0";
+//	private static String key = "$SS:C_0_8";
+//	private static String token = "78a3b0a6ea9b43ac8285481fd2df8d80";
 
 	public static void main(String[] args) {
 		logger.debug("**********************开始");

+ 13 - 2
src/main/java/cn/com/qmth/importpaper/ConsumerDto.java

@@ -4,7 +4,7 @@ public class ConsumerDto {
 	private ImportCourse ic;
 	private String sourceDir;
 	private String host;
-
+	private String batch;
 	private String rootOrgId;
 
 	private String key;
@@ -59,8 +59,18 @@ public class ConsumerDto {
 	public void setIc(ImportCourse ic) {
 		this.ic = ic;
 	}
+	
+	
+
+	public String getBatch() {
+		return batch;
+	}
+
+	public void setBatch(String batch) {
+		this.batch = batch;
+	}
 
-	public ConsumerDto(ImportCourse ic, String sourceDir, String host, String rootOrgId, String key, String token) {
+	public ConsumerDto(ImportCourse ic, String sourceDir, String host, String rootOrgId, String key, String token,String batch) {
 		super();
 		this.ic = ic;
 		this.sourceDir = sourceDir;
@@ -68,6 +78,7 @@ public class ConsumerDto {
 		this.rootOrgId = rootOrgId;
 		this.key = key;
 		this.token = token;
+		this.batch = batch;
 	}