소스 검색

fix:未登录右侧导航栏二级缓存修改

duxin 9 달 전
부모
커밋
a7a6671ad0
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/jfw/front/tags.go

+ 2 - 1
src/jfw/front/tags.go

@@ -606,7 +606,7 @@ func GetL2CacheData(dbName string, lock *sync.RWMutex, key string, f func() inte
 		}()
 		if data.IsEmpty() {
 			time.Sleep(100 * time.Millisecond)
-			if newData.IsEmpty() {
+			if !newData.IsEmpty() {
 				data = newData
 			}
 		}
@@ -631,6 +631,7 @@ func (this *Tags) GetConsult() []map[string]interface{} {
 		}
 		return rs
 	}, cacheTime)
+	log.Println(res.Maps())
 	if !res.IsEmpty() {
 		return res.Maps()
 	}