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") //{