//获取订单验证码 public void GetAsyncOrderRandCodeImg(Action <Image> callback, System.Net.CookieContainer cookie) { var webrequest = new WebRequestHelper(Properties.Resources.otn_getPassCodeNewAsync + this.QueryString, Properties.Resources.otn_leftTicket_init, "GET", "", cookie); webrequest.GetBitMap((bit) => { callback(bit); }, true); }
//获取订单验证码 public void GetOrderRandCodeImg(Action <Image> callback, System.Net.CookieContainer cookie) { var webrequest = new WebRequestHelper(Properties.Resources.otn_getPassCodeNew, Properties.Resources.otn_initDc, "GET", "", cookie); webrequest.GetBitMap((bit) => { callback(bit); }); }
//获取登录验证码 public void GetLoginRandCodeImg(Action <Image> callback) { //WebRequestHelper webrequest = new WebRequestHelper(Properties.Resources.passCodeNewAction, "", "GET", "", cookieContainer); var webrequest = new WebRequestHelper(Properties.Resources.otn_passCodeAction_sjrand, Properties.Resources.otn_loginAction_init, "GET", "", cookieContainer); webrequest.GetBitMap((bit) => { callback(bit); }); }