diff --git a/internal/logic/valueAddBundleLogic.go b/internal/logic/valueAddBundleLogic.go index 0d32612..cad82ea 100644 --- a/internal/logic/valueAddBundleLogic.go +++ b/internal/logic/valueAddBundleLogic.go @@ -197,6 +197,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 }