提交代码

dev
胡锐 1 month ago
parent 16680fca6d
commit e8e80a2f9b
  1. 4
      bweb/src/main/java/com/bweb/controller/CmsController.java

@ -98,8 +98,8 @@ public class CmsController {
cmsContent.setStatus(CmsStatusEnum.status2.getStatus());
cmsContentService.editData(cmsContent);
// 加入缓存
redisUtil.hset(CmsContentServiceImpl.CACHE_CMS_ONLINE, ""+cmsContent.getType(), cmsContent);
// 删除缓存
redisUtil.hdel(CmsContentServiceImpl.CACHE_CMS_ONLINE, ""+cmsContent.getType());
return ResponseMsgUtil.success("操作成功");
} catch (Exception e) {

Loading…
Cancel
Save