فهرست منبع

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()
 	}