From 46b02ce180af8b2e093c8b063ebae54441fa450a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=A7=E7=81=B0=E7=81=B0?= Date: Tue, 27 Sep 2022 01:07:05 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BC=98=E5=8C=96=E3=80=91=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E7=9F=AD=E4=BF=A1=E5=8F=91=E9=80=81=E6=96=B9=E6=B3=95?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0code=E7=B1=BB=E5=9E=8B=E5=88=A4=E6=96=AD?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CoreCms.Net.Web.WebApi/Controllers/UserController.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CoreCms.Net.Web.WebApi/Controllers/UserController.cs b/CoreCms.Net.Web.WebApi/Controllers/UserController.cs index 4b4ddf85..42c9be72 100644 --- a/CoreCms.Net.Web.WebApi/Controllers/UserController.cs +++ b/CoreCms.Net.Web.WebApi/Controllers/UserController.cs @@ -382,6 +382,11 @@ namespace CoreCms.Net.Web.WebApi.Controllers jm.msg = "请输入合法的手机号码"; return jm; } + if (string.IsNullOrEmpty(entity.code)) + { + jm.msg = "请提交合法的短信类型"; + return jm; + } //此验证貌似没意义。 //if (entity.code == "login") //{