Ejemplo n.º 1
0
        public IActionResult PhoneYZM(string phone)
        {
            Random r    = new Random();
            string code = r.Next(1000, 9999).ToString();
            var    str  = _logintel.sendSmsCode(phone, code);

            return(Ok(new { data = str, code = code }));
        }