This commit is contained in:
laodaming
2023-07-20 18:18:36 +08:00
parent 10aa0d14f0
commit 532929a563
3 changed files with 5 additions and 2 deletions

View File

@@ -2,6 +2,7 @@ package logic
import (
"errors"
"fmt"
"fusenapi/constants"
"fusenapi/model/gmodel"
"fusenapi/utils/auth"
@@ -62,6 +63,7 @@ func (l *HomePageRecommendProductListLogic) HomePageRecommendProductList(req *ty
if len(recommendProductList) == 0 {
return resp.SetStatusWithMessage(basic.CodeOK, "success", []interface{}{})
}
fmt.Println(recommendProductList)
productIds := make([]int64, 0, len(recommendProductList))
for _, product := range recommendProductList {
productIds = append(productIds, product.Id)