protected override void ImplementBusinessLogic() { ChkCodeImg chkImg = GetCheckCode(); this.Data.ChkCodeImg = ImageHelper.GetImageStr(chkImg.Image); this.Data.Key = chkImg.Key; this.Data.Code = chkImg.CheckCode; }
protected ChkCodeImg GetCheckCode() { ChkCodeImg chkImg = CheckCodeFac.GetCheckCode(); try { ISessionDaoStub stub = new SessionDaoStubFac().Get(); stub.updateSession(3000, chkImg.Key, System.Text.UTF8Encoding.UTF8.GetBytes(chkImg.CheckCode), 60); } catch (Exception e) { Errors = new ErrorInfo(ErrorDescription.CODE_SYSTEM_ERROR, ErrorDescription.MESSAGE_SYSTEM_ERROR); } return(chkImg); }