Browse Source

feat:文库推荐缓存调整

fuwencai 1 năm trước cách đây
mục cha
commit
5c43ad2d22
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      jydocs-back/servers/stdDoc.go

+ 1 - 1
jydocs-back/servers/stdDoc.go

@@ -324,7 +324,7 @@ func (stdDoc *StdDoc) DocRecommend() {
 			return nil, fmt.Errorf("参数无效")
 		}
 		topKey := fmt.Sprintf("jydoc_RecCache_%d_%s", regionState, tag)
-		listCache := redis.Get("other", topKey)
+		listCache := redis.Get(public.RedisCode, topKey)
 		if listCache != nil {
 			list, ok := listCache.([]interface{})
 			if ok && list != nil && len(list) > 0 {