提交 817e844f authored 作者: 毛洋's avatar 毛洋

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

上级 efdd63ba
......@@ -43,7 +43,8 @@ public class UEditorController {
String exec = new ActionEnter(request, rootPath).exec();
//exec=exec.replace("\"imageUrlPrefix\":\"https://imgb.mofangx.com/\"","'imageUrlPrefix':'"+imageUrlPrefix+"'");
exec=exec.replace("imgb.mofangx.com",imageUrl);
exec=exec.replace("{imgUrl}",imageUrl);
exec=exec.replace("{basePath}",ossPath);
//exec=exec.replace("'basePath':'erp/'","'basePath':'"+ossPath+"'");
......
/* 前后端通信相关的配置,注释只允许使用多行方式 */
{
"basePath":"erp/",/* 上传文件的基本路径 */
"basePath":"{basePath}",/* 上传文件的基本路径 */
/* 上传图片配置项 */
"imageActionName": "uploadimage", /* 执行上传图片的action名称 */
"imageFieldName": "upfile", /* 提交的图片表单名称 */
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论