diff --git a/internal/logic/valueAddBundleLogic.go b/internal/logic/valueAddBundleLogic.go index a6157c6..461f707 100644 --- a/internal/logic/valueAddBundleLogic.go +++ b/internal/logic/valueAddBundleLogic.go @@ -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 }