public CheckCode GetCheckCode() { Handler hander = new HandlerCheckCode(); hander.Invoke(); return((CheckCode)hander.Result); }
protected override void ImplementBusinessLogic() { try { global::Soway.Model.App.AppFac fac = new global::Soway.Model.App.AppFac(new ConHelper().GetSysCon(), this); var app = fac.GetApp(this.AppId, this.AppKey); if (app == null) { this.Data.Error = new ErrorInfo(ErrorDescription.CODE_AUTHENTICATE_APPUNAUTH, ErrorDescription.MESSAGE_AUTHENTICATE_PUUUNAUTH); } else { this.Data.AppImg = app.InitImage; this.Data.AppName = app.Name; this.Data.AppPowerBy = app.Company; this.Data.AppTitle = app.Name; this.Data.AppUrl = app.Url; this.Data.AppVersion = app.Version; Handler hander = new HandlerCheckCode(); hander.Invoke(); var chk = (CheckCode)hander.Result; this.Data.CheckCode = chk; this.Data.Dbs = new List <Init.StoreBaseInfo>(); foreach (var appdb in app.DataBase) { this.Data.Dbs.Add(new Init.StoreBaseInfo() { DbId = appdb.StoreBaseId, DbName = appdb.Name }); } } }catch (Exception ex) { } }
public bool ValidatCheckCode(CheckCode checkCode) { HandlerCheckCode hander = new HandlerCheckCode(); return(hander.Check(checkCode)); }