From 81d522ac2b1f28180db373a8aa31da6937a01c0c Mon Sep 17 00:00:00 2001 From: zcy <290198252@qq.com> Date: Mon, 18 Apr 2022 22:46:10 +0800 Subject: [PATCH] no message --- controller/blog.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/controller/blog.go b/controller/blog.go index c903a12..f457d7d 100644 --- a/controller/blog.go +++ b/controller/blog.go @@ -1,6 +1,7 @@ package controller import ( + "background/config" "background/db" "background/logs" "background/model" @@ -351,6 +352,7 @@ func UpdateArtilceTree(c *gin.Context) { logs.Error(e.Error()) return } + config.RedisOne().Del("artilcetree") rsp.Msg = "OK" rsp.Status = 0 } @@ -500,6 +502,7 @@ func AddArticleTree(c *gin.Context) { logs.Error(e.Error()) return } + config.RedisOne().Del("artilcetree") rsp.Msg = "OK" rsp.Status = 0 }