From 91fa9afa589bc0eac50f688f340e001335a6052c Mon Sep 17 00:00:00 2001 From: "jiaji.H" Date: Fri, 19 Sep 2025 10:54:03 +0800 Subject: [PATCH] =?UTF-8?q?Updata=EF=BC=9A=E6=B7=BB=E5=8A=A0=E5=A5=97?= =?UTF-8?q?=E9=A4=90=E6=95=B0=E9=87=8F=E7=AC=A6=E5=8F=B7=E6=A3=80=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/logic/valueAddBundleLogic.go | 3 +++ 1 file changed, 3 insertions(+) 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 }