Updata:添加套餐数量符号检验
This commit is contained in:
parent
5f4e1610d3
commit
91fa9afa58
@ -185,6 +185,9 @@ func SaveValueAddService(in *bundle.ValueAddServiceLang) (res *bundle.SaveRespon
|
||||
hasDefault := false
|
||||
for _, option := range options {
|
||||
if option.IsDefault {
|
||||
if option.Symbol != "=" {
|
||||
return res, errors.New("默认套餐数量只能选择数量符合为等于的选项")
|
||||
}
|
||||
hasDefault = true
|
||||
break
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user