提交 efdd63ba authored 作者: 毛洋's avatar 毛洋

更新src/main/java/com/example/controller/UEditorController.java, src/main/resources/config.json

上级 63eaed8b
......@@ -42,7 +42,7 @@ public class UEditorController {
String exec = new ActionEnter(request, rootPath).exec();
exec=exec.replace("\"imageUrlPrefix\":\"https://imgb.mofangx.com/\"","'imageUrlPrefix':'"+imageUrlPrefix+"'");
//exec=exec.replace("\"imageUrlPrefix\":\"https://imgb.mofangx.com/\"","'imageUrlPrefix':'"+imageUrlPrefix+"'");
exec=exec.replace("imgb.mofangx.com",imageUrl);
//exec=exec.replace("'basePath':'erp/'","'basePath':'"+ossPath+"'");
......
......@@ -10,7 +10,7 @@
"imageCompressEnable": true, /* 是否压缩图片,默认是true */
"imageCompressBorder": 1600, /* 图片压缩最长边限制 */
"imageInsertAlign": "none", /* 插入的图片浮动方式 */
"imageUrlPrefix": "https://imgb.mofangx.com/", /* 图片访问路径前缀 */
"imageUrlPrefix": "{imgUrl}", /* 图片访问路径前缀 */
"imagePathFormat": "{time}{rand:6}", /* 上传保存路径,可以自定义保存路径和文件名格式 */
/* {filename} 会替换成原文件名,配置这项需要注意中文乱码问题 */
/* {rand:6} 会替换成随机数,后面的数字是随机数的位数 */
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论