From a6d315a283b719e71ffa073182fd52826a3581f6 Mon Sep 17 00:00:00 2001 From: sxy <3187870250@qq.com> Date: Fri, 20 Jun 2025 15:34:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=A2=9E=E5=80=BC=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E4=BF=9D=E5=AD=98=E9=80=BB=E8=BE=91-1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/logic/valueAddBundleLogic.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/logic/valueAddBundleLogic.go b/internal/logic/valueAddBundleLogic.go index d94ccde..09dea1e 100644 --- a/internal/logic/valueAddBundleLogic.go +++ b/internal/logic/valueAddBundleLogic.go @@ -170,7 +170,7 @@ func SaveValueAddService(in *bundle.ValueAddServiceLang) (res *bundle.SaveRespon if option.Num < 0 || option.Num > 99 { return res, errors.New("数量参数需为0-99") } - if price > originalPrice { + if in.PriceMode == 1 && price > originalPrice { return res, errors.New("优惠单价需小于等于原价") } options = append(options, &model.PriceOption{