This commit is contained in:
laodaming 2023-09-27 16:36:38 +08:00
parent 1dfa390557
commit b6d0ef1c7c

View File

@ -194,7 +194,8 @@ func (d *FsProductModel3dModel) GetProductMinPrice(ctx context.Context, productI
}
lenRange := len(stepPrice.PriceRange)
if lenRange == 0 {
return errors.New(fmt.Sprintf("the count of step price is 0:%d", modelInfo.Id))
mapModelMinPrice[modelInfo.Id] = 0
continue
}
sort.SliceStable(stepPrice.PriceRange, func(i, j int) bool {
return stepPrice.PriceRange[i].Price > stepPrice.PriceRange[j].Price