LAPTOP-5NTQJPUS\LT 1 year ago
parent
commit
80d25a16e8
1 changed files with 2 additions and 2 deletions
  1. 2 2
      DataFusion/src/com/zskk/control/ViewController.java

+ 2 - 2
DataFusion/src/com/zskk/control/ViewController.java

@@ -475,7 +475,7 @@ public class ViewController extends Controller {
 	
 	public static String getFileWithUrl(String url, String filename) {
 
-		Request request = new Request.Builder().url(url).build();
+		Request request = new Request.Builder().url("http://172.28.244.106:8090/pacsimage/showreportbydiagidandpagenumber.action?diagrptid=ABA12F9079FB4017B7A77DF282C18ED7&pagenumber=0").build();
 		try (Response response = OKHTTP_CLIENT.newCall(request).execute()) {
 			if (!response.isSuccessful())
 				throw new IOException("Unexpected code " + response);
@@ -483,7 +483,7 @@ public class ViewController extends Controller {
 			// 本地文件夹目录(下载位置)
 			String folder = PropKit.get("oss_localPath");
 			// 下载文件保存位置
-			String savepath = folder + "/" + filename;
+			String savepath = folder + "/" + aaaa;
 			BufferedOutputStream bufferedOutputStream = new BufferedOutputStream(new FileOutputStream(new File(savepath)));
 			byte[] data = new byte[1024];
 			int len;