This commit is contained in:
laodaming 2023-10-20 11:53:28 +08:00
parent 4973687e07
commit 24dd57d57d

View File

@ -60,6 +60,9 @@ func (l *GetRecommendProductListLogic) GetRecommendProductList(req *types.GetRec
logx.Error(err)
return resp.SetStatusWithMessage(basic.CodeDbSqlErr, "failed to get recommend product list")
}
if len(recommendProductList) > int(req.Num) {
recommendProductList = recommendProductList[:req.Num]
}
}
//资源id集合
resourceIds := make([]string, 0, 50)