From c542bc64636b92d3abc266c6ad513ec9861322ec Mon Sep 17 00:00:00 2001
From: 935090232@qq.com <ak473600000>
Date: Mon, 02 May 2022 09:34:30 +0800
Subject: [PATCH] fead:缓存存储到数据库,合并本店产品与总部产品
---
zq-erp/src/main/java/com/matrix/system/common/actions/UeditorController.java | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/zq-erp/src/main/java/com/matrix/system/common/actions/UeditorController.java b/zq-erp/src/main/java/com/matrix/system/common/actions/UeditorController.java
index 673b071..aa2d6c7 100644
--- a/zq-erp/src/main/java/com/matrix/system/common/actions/UeditorController.java
+++ b/zq-erp/src/main/java/com/matrix/system/common/actions/UeditorController.java
@@ -4,8 +4,10 @@
package com.matrix.system.common.actions;
import com.matrix.component.ueditor.ActionEnter;
+import com.matrix.component.ueditor.UeditorProperties;
import com.matrix.core.exception.GlobleException;
import com.matrix.core.tools.LogUtil;
+import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@@ -24,6 +26,10 @@
@RequestMapping(value = "admin/beditor")
public class UeditorController {
+
+ @Autowired
+ UeditorProperties ueditorProperties;
+
/**
* 百度编辑器主入口方法
*
@@ -38,7 +44,7 @@
response.setContentType("application/json");
String rootPath = request.getSession().getServletContext().getRealPath("/");
try {
- String exec = new ActionEnter(request, rootPath).exec();
+ String exec = new ActionEnter(request, rootPath,ueditorProperties).exec();
PrintWriter writer = response.getWriter();
writer.write(exec);
writer.flush();
--
Gitblit v1.9.1