浏览代码

Merge branch 'feature/v4.9.13_ws' of qmx/jy into feature/v4.9.13

wangshan 1 年之前
父节点
当前提交
1894cbbe2c
共有 2 个文件被更改,包括 6 次插入0 次删除
  1. 3 0
      src/jfw/front/shorturl.go
  2. 3 0
      src/jfw/modules/app/src/app/front/shorturl.go

+ 3 - 0
src/jfw/front/shorturl.go

@@ -107,6 +107,9 @@ func (s *Short) ClearCache() {
 		cacheIndex = []byte{}
 	}
 	log.Println("after cacheIndex:", string(cacheIndex))
+	s.ServeJson(map[string]interface{}{
+		"state": len(cacheIndex),
+	})
 }
 
 func (s *Short) WhiteList() error {

+ 3 - 0
src/jfw/modules/app/src/app/front/shorturl.go

@@ -88,6 +88,9 @@ func (s *Short) ClearCache() {
 		cacheIndex = []byte{}
 	}
 	log.Println("after cacheIndex:", string(cacheIndex))
+	s.ServeJson(map[string]interface{}{
+		"state": len(cacheIndex),
+	})
 }
 
 func (s *Short) WhiteList() error {