869
社区成员
发帖
与我相关
我的任务
分享
有用,搞定了
var endTime = DateTime.Now; //结束时间
int timeCost = (int)((endTime - startTime).TotalMilliseconds); //计算所用时间
WxPayData result = new WxPayData();
result.FromXml(response, h5Config.Key);
H5Pay.ReportCostTime(site_payment_id, sendUrl, timeCost, result); //测速上报
Log.Info(this.GetType().ToString(), xml.ToString());
Log.Info(this.GetType().ToString(), result.ToXml());
mweb_url = result.GetValue("mweb_url").ToString();//mweb_url为拉起微信支付收银台的中间页面,可通过访问该url来拉起微信客户端,完成支付,mweb_url的有效期为5分钟。
string redia = Server.UrlEncode("http://www.fostecon.cn/out_trade_no_search.aspx?pdf=" + Request.Form["pdf"].ToString() + "&id=" + Request.Form["id"].ToString() + "&qx=" + Request.Form["qx"].ToString() + "&bj=0&out_trade_no=" + out_trade_no);
mweb_url = mweb_url + "&redirect_url=" + redia;
Log.Info(this.GetType().ToString(), "mweb_url:" + mweb_url.ToString());
Response.Redirect(mweb_url);