|
@@ -39,6 +39,8 @@ public class OnlyOfficeCallbackController {
|
|
|
private void callBack(HttpServletRequest request, HttpServletResponse response) throws IOException {
|
|
|
PrintWriter writer = null;
|
|
|
JSONObject jsonObj = null;
|
|
|
+ String originPath = request.getParameter("originPath");
|
|
|
+ System.out.println("===originPath:" + originPath);
|
|
|
System.out.println("===saveeditedfile------------");
|
|
|
|
|
|
try {
|
|
@@ -60,8 +62,7 @@ public class OnlyOfficeCallbackController {
|
|
|
if ((int) jsonObj.get("status") == 2) {
|
|
|
String key = (String) jsonObj.get("key");
|
|
|
//通过 key获取到文件在服务器上原始保存路经
|
|
|
- String originFilePath = "";
|
|
|
- OnlyOfficeFileUtil.callBackSaveDocument(jsonObj,originFilePath);
|
|
|
+ OnlyOfficeFileUtil.callBackSaveDocument(jsonObj,originPath);
|
|
|
}
|
|
|
} catch (IOException e) {
|
|
|
e.printStackTrace();
|
|
@@ -74,8 +75,7 @@ public class OnlyOfficeCallbackController {
|
|
|
if ((int) jsonObj.get("status") == 6) {
|
|
|
String key = (String) jsonObj.get("key");
|
|
|
//通过 key获取到文件在服务器上原始保存路经
|
|
|
- String originFilePath = "";
|
|
|
- OnlyOfficeFileUtil.callBackSaveDocument(jsonObj,originFilePath);
|
|
|
+ OnlyOfficeFileUtil.callBackSaveDocument(jsonObj,originPath);
|
|
|
writer.write("{\"error\":1}");
|
|
|
} else {
|
|
|
writer.write("{\"error\":0}");
|