From b6d0ef1c7c37ecad8f005b6792689e5206c7081e Mon Sep 17 00:00:00 2001 From: laodaming <11058467+laudamine@user.noreply.gitee.com> Date: Wed, 27 Sep 2023 16:36:38 +0800 Subject: [PATCH] fix --- model/gmodel/fs_product_model3d_logic.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/model/gmodel/fs_product_model3d_logic.go b/model/gmodel/fs_product_model3d_logic.go index 7f399a01..92a54a39 100755 --- a/model/gmodel/fs_product_model3d_logic.go +++ b/model/gmodel/fs_product_model3d_logic.go @@ -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