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)); }
public bool CheckVerCode(string key, string code, int type) { return(VerCodeHelper.CheckVerCode(key, code, type)); }