// GET: Weixin public ActionResult Index(string productCode, string productName, string productDesc, string orderno, int total_fee) { LogService.LOG_LEVENL = 2; NativePay nativePay = new NativePay(); //生成扫码支付模式二url string url = StringService.StringToHexString(nativePay.GetPayUrl(productCode, productName, productDesc, orderno, total_fee)); Response.Redirect(Url.Action("ScanQRCodeImage", "weixin") + "?url=" + HttpUtility.UrlEncode(url) + "&orderno=" + orderno); return(View()); }