fix
This commit is contained in:
parent
4aaf1a1587
commit
6253acf53c
|
@ -60,6 +60,10 @@ func (l *GetRecommandProductListLogic) GetRecommandProductList(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