Compare commits
No commits in common. "c61ab9c0bdb51d2ca8fa49550ee5db06c4d3eb52" and "b896c73fbbc303f6c9dfffb1d6d46ffd9f0c6faf" have entirely different histories.
c61ab9c0bd
...
b896c73fbb
@ -170,7 +170,7 @@ func SaveValueAddService(in *bundle.ValueAddServiceLang) (res *bundle.SaveRespon
|
|||||||
if option.Num < 0 || option.Num > 99 {
|
if option.Num < 0 || option.Num > 99 {
|
||||||
return res, errors.New("数量参数需为0-99")
|
return res, errors.New("数量参数需为0-99")
|
||||||
}
|
}
|
||||||
if in.PriceMode == 1 && price > originalPrice {
|
if price > originalPrice {
|
||||||
return res, errors.New("优惠单价需小于等于原价")
|
return res, errors.New("优惠单价需小于等于原价")
|
||||||
}
|
}
|
||||||
options = append(options, &model.PriceOption{
|
options = append(options, &model.PriceOption{
|
||||||
|
Loading…
Reference in New Issue
Block a user