fix
This commit is contained in:
parent
4973687e07
commit
24dd57d57d
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user