|
@@ -781,6 +781,9 @@ public class SysController {
|
|
FileUtil.outputFile(response, new File(sysLogPath), "sys.log");
|
|
FileUtil.outputFile(response, new File(sysLogPath), "sys.log");
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+// public static final String newUrl = "https://file-test.teach-cloud.com";
|
|
|
|
+// public static final String oldUrl = "https://teachcloud-test.oss-cn-shenzhen.aliyuncs.com";
|
|
|
|
+//
|
|
// @ApiOperation(value = "读取markdown文件")
|
|
// @ApiOperation(value = "读取markdown文件")
|
|
// @RequestMapping(value = "/reader/markdown", method = RequestMethod.POST)
|
|
// @RequestMapping(value = "/reader/markdown", method = RequestMethod.POST)
|
|
// @ApiResponses({@ApiResponse(code = 200, message = "返回信息", response = EditResult.class)})
|
|
// @ApiResponses({@ApiResponse(code = 200, message = "返回信息", response = EditResult.class)})
|
|
@@ -832,6 +835,7 @@ public class SysController {
|
|
// json.put(SystemConstant.UPLOAD_TYPE, UploadFileEnum.FILE);
|
|
// json.put(SystemConstant.UPLOAD_TYPE, UploadFileEnum.FILE);
|
|
// json.put(SystemConstant.MD5, imageMd5);
|
|
// json.put(SystemConstant.MD5, imageMd5);
|
|
// String imgUrl = fileUploadService.filePreview(json.toJSONString());
|
|
// String imgUrl = fileUploadService.filePreview(json.toJSONString());
|
|
|
|
+// imgUrl = imgUrl.replaceAll(oldUrl, newUrl);
|
|
// line = line.replaceAll(url, imgUrl);
|
|
// line = line.replaceAll(url, imgUrl);
|
|
// } finally {
|
|
// } finally {
|
|
// if (Objects.nonNull(imgUrlTempFile)) {
|
|
// if (Objects.nonNull(imgUrlTempFile)) {
|