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