浏览代码

fix:修改

duxin 1 年之前
父节点
当前提交
4b7fe47051
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      src/jfw/front/index.go

+ 4 - 1
src/jfw/front/index.go

@@ -393,7 +393,10 @@ func GetIndexProjectList(typ, pageSize int) (data []map[string]interface{}, type
 		data = append(data, v)
 	}*/
 	finalArr := FillingBiddingBaseFields(gctx.New(), res.List(), types)
-	redis.Put(RedisNameNew, redidKey, data, 24*3600)
+	if len(finalArr) > 5 {
+		finalArr = finalArr[:5]
+	}
+	redis.Put(RedisNameNew, redidKey, finalArr, 24*3600)
 	return finalArr, types
 }