wangshan 2 жил өмнө
parent
commit
de294da34f

+ 1 - 1
src/jfw/modules/bigmember/src/entity/marketAnalysis/marketAnalysisEntity.go

@@ -348,7 +348,7 @@ func (mae *MarketAnalysisEntity) GetPartResult(flag int) (map[string]interface{}
 		return mae.getQueryItem()
 	}
 	thisCacheKey := fmt.Sprintf(ReportCacheKey, mae.MgoRecordId, flag)
-	if cacheData := redis.Get(ReportCacheDB, thisCacheKey); false && cacheData != nil {
+	if cacheData := redis.Get(ReportCacheDB, thisCacheKey); cacheData != nil {
 		if cacheMap, ok := cacheData.(map[string]interface{}); ok && len(cacheMap) > 0 {
 			return cacheMap, nil
 		}