public Respbase SendSms(ReqSms req) { SmsFacade smsFacade = new SmsFacade(); smsFacade.SendSms(req.Typeid, req.Btypeid, req.Mobileno, req.Content, req.Sid); return(smsFacade.PromptInfo); }
public Respbase RegValidateMobile(ReqSms req) { if (!AppConfig.IsOpenRegister) { return(new Respbase { Result = -1, Message = "对不起,内测阶段暂停注册" }); } UserFacade userFacade = new UserFacade(); userFacade.RegValidateMobile(req.Mobileno.Trim(), req.InvitationCode); return(userFacade.PromptInfo); }