Compare commits

...

2 Commits

Author SHA1 Message Date
sxy
c61ab9c0bd Merge branch 'sxy' into dev 2025-06-20 15:35:06 +08:00
sxy
a6d315a283 修改增值服务保存逻辑-1 2025-06-20 15:34:55 +08:00

View File

@ -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{