Browse Source

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

wangshan 1 năm trước cách đây
mục cha
commit
1894cbbe2c

+ 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 {