Compare commits

...

2 Commits

Author SHA1 Message Date
jiaji.H
76e4b7c998 Merge branch 'feat-hjj-packageManage#A116' into dev 2025-09-19 10:57:12 +08:00
jiaji.H
91fa9afa58 Updata:添加套餐数量符号检验 2025-09-19 10:54:03 +08:00

View File

@ -197,6 +197,9 @@ func SaveValueAddService(in *bundle.ValueAddServiceLang) (res *bundle.SaveRespon
hasDefault := false hasDefault := false
for _, option := range options { for _, option := range options {
if option.IsDefault { if option.IsDefault {
if option.Symbol != "=" {
return res, errors.New("默认套餐数量只能选择数量符合为等于的选项")
}
hasDefault = true hasDefault = true
break break
} }