Ejemplo n.º 1
0
        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());
        }
Ejemplo n.º 2
0
 /// <summary>
 /// 发送验证短信
 /// </summary>
 /// <param name="request"></param>
 /// <returns></returns>
 public async Task <ServiceResult> SendSms(SendSmsAo request)
 {
     return(await _iCode.Create(request.Phone, 300, request.Ip));
 }