public ActionResult NativePay()
        {
            WxPayLog.Info(this.GetType().ToString(), "page load");

            //生成扫码支付模式一url
            ViewBag.QRCode1 = WxPayApiBiz.GetNativePrePayUrl("123456789");

            //生成扫码支付模式二url
            ViewBag.QRCode2 = WxPayApiBiz.GetNativePayUrl("123456789");

            return(View());
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            WxPayLog.Info(this.GetType().ToString(), "page load");

            //生成扫码支付模式一url
            string url1 = WxPayApiBiz.GetNativePrePayUrl("123456789");

            //生成扫码支付模式二url
            string url2 = WxPayApiBiz.GetNativePayUrl("123456789");

            //将url生成二维码图片
            Image1.ImageUrl = "MakeQRCode.aspx?data=" + HttpUtility.UrlEncode(url1);
            Image2.ImageUrl = "MakeQRCode.aspx?data=" + HttpUtility.UrlEncode(url2);
        }