diff --git a/com.actionsoft.apps.coe.pal.publisher/lib/com.actionsoft.apps.coe.pal.publisher.jar b/com.actionsoft.apps.coe.pal.publisher/lib/com.actionsoft.apps.coe.pal.publisher.jar index 90f489d2..ebe87f49 100644 Binary files a/com.actionsoft.apps.coe.pal.publisher/lib/com.actionsoft.apps.coe.pal.publisher.jar and b/com.actionsoft.apps.coe.pal.publisher/lib/com.actionsoft.apps.coe.pal.publisher.jar differ diff --git a/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/pubEvent/ProcessEndAfterEvent_new.java b/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/pubEvent/ProcessEndAfterEvent_new.java index c8ff56dd..cbbf2a8b 100644 --- a/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/pubEvent/ProcessEndAfterEvent_new.java +++ b/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/pubEvent/ProcessEndAfterEvent_new.java @@ -567,7 +567,6 @@ public class ProcessEndAfterEvent_new extends ExecuteListener implements Execute model.getWsId(), rowMap.getString("TASKID"), filename + "_" + lever + ".doc"); - System.out.println("dcContext=========" + dcContext.getDownloadURL()); String filepath = dcContext.getFilePath(); String finalFilePath = filepath.replace("bin\\..\\", ""); diff --git a/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/utils/UploadGptFileUtils.java b/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/utils/UploadGptFileUtils.java index d3e4d078..6c8ef3c4 100644 --- a/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/utils/UploadGptFileUtils.java +++ b/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/utils/UploadGptFileUtils.java @@ -19,6 +19,7 @@ public class UploadGptFileUtils { String requestCode = "bbc058b3f3132b742089998684a91767"; // Replace with your requestCode String filePath = "C:\\Users\\admin\\Desktop\\伊利项目\\伊利集团数据管理办法 (2).docx"; // Replace with your file path*/ + String result = ""; String boundary = "----WebKitFormBoundary" + System.currentTimeMillis(); HttpURLConnection connection = (HttpURLConnection) new URL(targetUrl).openConnection(); connection.setRequestMethod("POST"); @@ -60,13 +61,12 @@ public class UploadGptFileUtils { int responseCode = connection.getResponseCode(); System.out.println("Response Code: " + responseCode); BufferedReader reader = new BufferedReader(new InputStreamReader(connection.getInputStream())); - String line=null; + String line; + StringBuilder response = new StringBuilder(); while ((line = reader.readLine()) != null) { - System.out.println(line); - + result = result + line; } - - return line; + return result; } }