Merge branch 'sxy' into dev
This commit is contained in:
commit
c61ab9c0bd
@ -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{
|
||||
|
Loading…
Reference in New Issue
Block a user