فهرست منبع

修改变量同步修改redis值

shenhao 4 سال پیش
والد
کامیت
491732b6f4
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      src/main/java/com/ssj/sys/controller/ConfigController.java

+ 2 - 1
src/main/java/com/ssj/sys/controller/ConfigController.java

@@ -6,6 +6,7 @@ import com.ssj.framework.basic.config.bean.Config;
 import com.ssj.framework.basic.config.service.ConfigService;
 import com.ssj.framework.core.common.controller.BaseController;
 import com.ssj.framework.core.security.manager.TokenManager;
+import com.ssj.framework.core.util.SystemResourceLocator;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.data.domain.Page;
 import org.springframework.stereotype.Controller;
@@ -73,7 +74,7 @@ public class ConfigController extends BaseController {
     	Response response = new  Response();
     	config=configService.save(config);
     	configService.clearConfigCache();
-		tokenManager.setString(config.getParamCode(),config.getParamVal());
+		SystemResourceLocator.setValue(config.getParamCode(),config.getParamVal(),true);
     	response.success(config);
         return response;
     }