【优化】接口短信发送方法增加code类型判断。

This commit is contained in:
大灰灰
2022-09-27 01:07:05 +08:00
parent a5688502bf
commit 46b02ce180

View File

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