From 80cc72a74bac5cc35edb5b84e2ad77018d5c5c56 Mon Sep 17 00:00:00 2001 From: chenlin Date: Fri, 18 Jul 2025 18:24:36 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E4=BF=AE=E5=A4=8D=E7=A7=9F=E8=B5=81?= =?UTF-8?q?=E8=AE=A2=E5=8D=95=E5=BD=92=E8=BF=98=E6=97=B6=E6=89=8B=E6=9C=BA?= =?UTF-8?q?=E5=B0=BE=E5=8F=B7=E4=B8=BA=E7=A9=BA=E6=97=B6=E6=8A=A5=E9=94=99?= =?UTF-8?q?=E7=9A=84=E7=BC=BA=E9=99=B7=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/apis/ordermanage/order.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/admin/apis/ordermanage/order.go b/app/admin/apis/ordermanage/order.go index 7477320..1f173d5 100644 --- a/app/admin/apis/ordermanage/order.go +++ b/app/admin/apis/ordermanage/order.go @@ -122,7 +122,7 @@ func RevertGoods(c *gin.Context) { return } - if len(order.PhoneExt) != 4 { + if order.PhoneExt != "" && len(order.PhoneExt) != 4 { app.Error(c, http.StatusBadRequest, errors.New("手机尾号填写有误(4位数字)"), "手机尾号填写有误(4位数字)") return