提交代码

master
胡锐 2 months ago
parent d151a03d60
commit 16680fca6d
  1. 4
      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) {

Loading…
Cancel
Save