From 9ae101b1efe0ffbfe1f588895b02a532bef42d03 Mon Sep 17 00:00:00 2001 From: jianweie code Date: Mon, 1 May 2023 22:34:25 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E5=A4=8D=E3=80=91=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E5=89=8D=E7=AB=AF=E4=B8=8B=E5=8D=95=E6=9C=AA=E6=BB=A1?= =?UTF-8?q?=E8=B6=B3=E6=9D=A1=E4=BB=B6=E8=80=8C=E6=9C=AA=E6=8A=A5=E9=94=99?= =?UTF-8?q?=E6=8F=90=E9=86=92=E7=9A=84=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CoreCms.Net.Web.WebApi/Controllers/OrderController.cs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/CoreCms.Net.Web.WebApi/Controllers/OrderController.cs b/CoreCms.Net.Web.WebApi/Controllers/OrderController.cs index 0f804638..53f6827c 100644 --- a/CoreCms.Net.Web.WebApi/Controllers/OrderController.cs +++ b/CoreCms.Net.Web.WebApi/Controllers/OrderController.cs @@ -184,6 +184,7 @@ namespace CoreCms.Net.Web.WebApi.Controllers { jm.data = 13001; jm.msg = GlobalErrorCodeVars.Code13001; + return jm; } break; } @@ -194,32 +195,36 @@ namespace CoreCms.Net.Web.WebApi.Controllers { jm.data = 13001; jm.msg = GlobalErrorCodeVars.Code13001; + return jm; } //提货人姓名 提货人电话 if (string.IsNullOrEmpty(entity.ladingName)) { jm.data = 13001; - jm.msg = "请输入姓名"; + jm.msg = "请输入提货人姓名"; + return jm; } if (string.IsNullOrEmpty(entity.ladingMobile)) { jm.data = 13001; - jm.msg = "请输入电话"; + jm.msg = "请输入提货人电话"; + return jm; } break; } default: jm.data = 13001; jm.msg = "未查询到配送方式"; - break; + return jm; } if (string.IsNullOrEmpty(entity.cartIds)) { jm.data = 10000; jm.msg = GlobalErrorCodeVars.Code10000; + return jm; } jm = await _orderServices.ToAdd(_user.ID, entity.orderType, entity.cartIds, entity.receiptType,