|
|
@@ -1,7 +1,6 @@
|
|
|
package com.njuzr.eaibackend.controller;
|
|
|
|
|
|
import com.alibaba.fastjson2.JSONObject;
|
|
|
-import com.njuzr.eaibackend.dto.ForceSave;
|
|
|
import com.njuzr.eaibackend.exception.MyException;
|
|
|
import com.njuzr.eaibackend.utils.FileUtil;
|
|
|
import com.njuzr.eaibackend.utils.OssUtil;
|
|
|
@@ -59,7 +58,7 @@ public class OnlyOfficeController {
|
|
|
if (status == 6 || status == 2) {
|
|
|
String fileUrl = (String) jsonObject.get("url");
|
|
|
Resource resource = fileUtil.downloadFile(fileUrl);
|
|
|
- ossUtil.uploadFile(resource.getInputStream(), key);
|
|
|
+ ossUtil.uploadFile(resource.getInputStream(), key+".docx");
|
|
|
}
|
|
|
|
|
|
} catch (Exception e) {
|