public async Task <ApiResult> SendSms(SendSmsRequest request) { var ao = new SendSmsAo { Ip = _httpContextAccessor.HttpContext.Request.GetClientIp(), Phone = request.Phone }; var result = await _userApplication.SendSms(ao); return(result.ToApiResult()); }
/// <summary> /// 发送验证短信 /// </summary> /// <param name="request"></param> /// <returns></returns> public async Task <ServiceResult> SendSms(SendSmsAo request) { return(await _iCode.Create(request.Phone, 300, request.Ip)); }