Browse Source

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

wangshan 1 year ago
parent
commit
1894cbbe2c
2 changed files with 6 additions and 0 deletions
  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 {