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) {