修改验证码访问接口

This commit is contained in:
“wanyongkang”
2026-03-12 15:24:10 +08:00
parent 2f14f45621
commit d1e4fb05b8
5 changed files with 18 additions and 6 deletions

View File

@@ -345,6 +345,18 @@ namespace Home.Controllers
/// <returns></returns>
[HttpPost, AllowAnonymous]
public async Task<ApiResult> SendPhoneCodevefy(string phone, string key)
{
return new ApiResult(ResultCode.C_SUCCESS, "验证码已发送到您的手机");
}
/// <summary>
/// 发送手机验证码
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
[HttpPost, AllowAnonymous]
public async Task<ApiResult> SendPhonesCodevefy(string phone, string key)
{
key = $"{key}:{phone}";