Exemplo n.º 1
0
        public ApiResult <bool> GetVerCode(string key, int type)
        {
            XTrace.WriteLine("GetVerCode");
            try
            {
                switch (type)
                {
                case 1:
                    VerCodeHelper.MailSendVerCode(key);
                    break;

                case 0:
                default:
                    VerCodeHelper.PhoneSendVerCode(key);
                    break;
                }
            }
            catch (Exception e)
            {
                XTrace.WriteException(e);
                throw;
            }


            return(ApiResult.Ok(true));
        }
Exemplo n.º 2
0
 public bool CheckVerCode(string key, string code, int type)
 {
     return(VerCodeHelper.CheckVerCode(key, code, type));
 }