Browse Source

http请求方式修改

wangliang 4 years ago
parent
commit
71d81db3e6

+ 3 - 5
themis-business/src/main/java/com/qmth/themis/business/bean/exam/EnvBean.java

@@ -18,7 +18,7 @@ public class EnvBean {
 	private Long currentTime;
 	private Long currentTime;
 
 
 	@ApiModelProperty("黑名单资源文件下载地址")
 	@ApiModelProperty("黑名单资源文件下载地址")
-	private List<String> denyList;
+	private String denyList;
 
 
 	public VersionBean getVersion() {
 	public VersionBean getVersion() {
 		return version;
 		return version;
@@ -44,13 +44,11 @@ public class EnvBean {
 		this.currentTime = currentTime;
 		this.currentTime = currentTime;
 	}
 	}
 
 
-	public List<String> getDenyList() {
+	public String getDenyList() {
 		return denyList;
 		return denyList;
 	}
 	}
 
 
-	public void setDenyList(List<String> denyList) {
+	public void setDenyList(String denyList) {
 		this.denyList = denyList;
 		this.denyList = denyList;
 	}
 	}
-
-
 }
 }

+ 1 - 0
themis-exam/src/main/java/com/qmth/themis/exam/api/SysController.java

@@ -44,6 +44,7 @@ public class SysController {
         v.setValue(12);
         v.setValue(12);
         v.setUrl("xxxxxx");
         v.setUrl("xxxxxx");
         env.setVersion(v);
         env.setVersion(v);
+        env.setDenyList("http://192.168.10.36:6002/client/denyList.json");
         return ResultUtil.ok(env);
         return ResultUtil.ok(env);
     }
     }
 }
 }