|
@@ -169,8 +169,7 @@ public class NoticeManagementController {
|
|
|
// 上传文件路径
|
|
|
String filePath = Path.getNoticePath();
|
|
|
// 上传并返回新文件名称
|
|
|
- String fileName = null;
|
|
|
- fileName = FileUploadUtil.upload(filePath, file);
|
|
|
+ String fileName = FileUploadUtil.upload(filePath, file);
|
|
|
fileNames.append(fileName).append(",");
|
|
|
}
|
|
|
String noticeAnnex = evaluationNotice.getNoticeAnnex() + "," + fileNames.toString().substring(0, fileNames.toString().length() - 1);
|
|
@@ -267,7 +266,7 @@ public class NoticeManagementController {
|
|
|
*/
|
|
|
@GetMapping(value = "/filePreview")
|
|
|
public R convertToHtml(@RequestParam("url") String url) {
|
|
|
- String httpUrl = "http://192.168.2.14:8098/office/" + url;
|
|
|
+ String httpUrl = "http://192.168.2.10:8098/office/" + url;
|
|
|
return R.ok().data(httpUrl);
|
|
|
}
|
|
|
}
|