Эх сурвалжийг харах

fix:企业程序空搜索redis修改

duxin 1 жил өмнө
parent
commit
5497af3ad0

+ 1 - 1
src/jfw/modules/publicapply/src/enterpriseSearch/entity/entQuery.go

@@ -381,7 +381,7 @@ func GetEntIndexShow(isFree bool) (list *[]map[string]interface{}) {
 	listTmp := elastic.Get(index, itype, sql)
 	if listTmp != nil && len(*listTmp) > 0 {
 		list = formatData(listTmp, isFree)
-		redis.Put(entSearchCacheDB, entSearchCacheKey, list, 60*60*10)
+		redis.PutCKV(entSearchCacheDB, fmt.Sprintf(entSearchCacheKey, isFree), list)
 	}
 	return
 }