刘韬 il y a 3 ans
Parent
commit
a9cdb23656
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      DataFusion/src/com/zskk/control/ViewController.java

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

@@ -80,8 +80,8 @@ public class ViewController extends Controller {
 			JSONArray array= dService.getImage("CT00043360");
 			for (Object object : array) {
 				JSONObject jsonObject = JSON.parseObject(object.toString());
-				
-				dService.downloadFtpFile(jsonObject.getString("Path"), String.valueOf(array.indexOf(object)));
+				String[] strings = jsonObject.getString("Path").split("\\\\");
+				dService.downloadFtpFile(jsonObject.getString("Path"), strings[1]);
 			}
 			this.renderJson(array);