|
@@ -17,7 +17,7 @@ public class ExportController extends BaseController{
|
|
|
private static final int BUFFER_SIZE = 2 * 1024;
|
|
|
|
|
|
public void index() {
|
|
|
- System.out.println("zzzzzzzzzzzzzzz");
|
|
|
+// System.out.println("zzzzzzzzzzzzzzz");
|
|
|
// String json="{\n" +
|
|
|
// " \"results\": [\n" +
|
|
|
// " {\n" +
|
|
@@ -47,7 +47,7 @@ public class ExportController extends BaseController{
|
|
|
for (int j = 0; j < index.size(); j++) {
|
|
|
//获取 title,下面的参数获取以此类推
|
|
|
String name = index.getJSONObject(j).getString("name");
|
|
|
- String path = "http://192.168.0.251/obpm"+ index.getJSONObject(j).getString("path");
|
|
|
+ String path = "http://172.22.21.102/obpm"+ index.getJSONObject(j).getString("path");
|
|
|
//String path = index.getJSONObject(j).getString("path");
|
|
|
//将文件保存到相对路径文件夹,文件夹名称以yyyyMMddhhmmss命名
|
|
|
downLoadFromUrl(path, name, PathKit.getWebRootPath()+"/download/"+sdf.format(dt)+"/",accessToken);
|
|
@@ -78,9 +78,9 @@ public class ExportController extends BaseController{
|
|
|
// } catch (IOException e) {
|
|
|
// e.printStackTrace();
|
|
|
// }
|
|
|
- System.out.println(" 下载======"+ "http://192.168.0.102:9999/upload/"+sdf.format(dt)+".zip");
|
|
|
+// System.out.println(" 下载======"+ "http://192.168.0.102:9999/upload/"+sdf.format(dt)+".zip");
|
|
|
//render("index.html");
|
|
|
- renderJson("{'url':'http://192.168.0.102:9999/upload/"+sdf.format(dt)+".zip'}");
|
|
|
+ renderJson("{'url':'http://172.22.21.102/liug/upload/"+sdf.format(dt)+".zip'}");
|
|
|
}
|
|
|
/**
|
|
|
* 网络Url下载文件
|