瀏覽代碼

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

duxin 1 年之前
父節點
當前提交
5497af3ad0
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/jfw/modules/publicapply/src/enterpriseSearch/entity/entQuery.go

+ 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
 }