From 16680fca6dde1cc01a394287e1fc133421f50a7b Mon Sep 17 00:00:00 2001 From: hu177768073 <177768073@qq.com> Date: Wed, 25 Sep 2024 17:45:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bweb/src/main/java/com/bweb/controller/CmsController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bweb/src/main/java/com/bweb/controller/CmsController.java b/bweb/src/main/java/com/bweb/controller/CmsController.java index d2ead99..82e0bf1 100644 --- a/bweb/src/main/java/com/bweb/controller/CmsController.java +++ b/bweb/src/main/java/com/bweb/controller/CmsController.java @@ -99,7 +99,7 @@ public class CmsController { cmsContentService.editData(cmsContent); // 加入缓存 - redisUtil.hset(CmsContentServiceImpl.CACHE_CMS_ONLINE, ""+body.getType(), cmsContent); + redisUtil.hset(CmsContentServiceImpl.CACHE_CMS_ONLINE, ""+cmsContent.getType(), cmsContent); return ResponseMsgUtil.success("操作成功"); } catch (Exception e) { @@ -127,7 +127,7 @@ public class CmsController { cmsContentService.editData(cmsContent); // 删除缓存 - redisUtil.hdel(CmsContentServiceImpl.CACHE_CMS_ONLINE, ""+body.getType()); + redisUtil.hdel(CmsContentServiceImpl.CACHE_CMS_ONLINE, ""+cmsContent.getType()); return ResponseMsgUtil.success("操作成功"); } catch (Exception e) {