protected void Page_Load(object sender, EventArgs e) { if (!string.IsNullOrEmpty(Request["data"])) { string data = Request["data"]; var zgtNoti = new viviapi.ETAPI.YeePay.ZGT.Bank(); zgtNoti.Notify(data); } }
private void Getqrcode_img_url(int suppid, string orderid, decimal orderAmt, string bankcode) { var info = OrderBankCodePay.Instance.GetModel(orderid); if (info == null) { var SuppInfo = viviapi.BLL.Supplier.Factory.GetCacheModel(suppid); if (SuppInfo != null) { company_name = SuppInfo.desc; if (SuppInfo.multiacct) { var itemInfo = suppAcctBll.GetCacheModelByDomain((int)SupplierCode.Weixin , HttpContext.Current.Request.Url.Authority); if (itemInfo != null) { company_name = itemInfo.jumpdomain; } } } if (suppid == (int)SupplierCode.Swiftpass) { var api = new viviapi.ETAPI.Swiftpass.Gateway(); Hashtable param = api.submitOrderInfo(orderid, orderAmt); if (param == null) { Response.Write("系统出错,请联系客服处理 ErrCode 2000"); Response.End(); } else { qrcode_img_url = param["code_img_url"].ToString(); code_url = param["code_url"].ToString(); } } else if (suppid == (int)SupplierCode.YeePayZGT) { var wxpay = new viviapi.ETAPI.YeePay.ZGT.Bank(); qrcode_img_url = wxpay.WxQRCode(orderid, orderAmt, bankcode); if (!string.IsNullOrEmpty(qrcode_img_url)) { qrcode_img_url = "WxZGTQr.ashx?url=" + qrcode_img_url; } } } }