Commit 93dedac47a6f806aaad36472ddc96870d166f953

Authored by liuqimichale
1 parent 19ff4509

调试微信支付

Showing 2 changed files with 9 additions and 1 deletions
home.html
... ... @@ -83,7 +83,7 @@
83 83 <script src="js/config.js?v=0.1"></script>
84 84 <script src="js/common.js?v=1.11"></script>
85 85 <!--<script src="js/jweixin-1.0.0.js?v=0.1"></script>-->
86   -<script src="js/pay.js?v=0.55420"></script>
  86 +<script src="js/pay.js?v=0.5123420"></script>
87 87 </body>
88 88  
89 89 </html>
... ...
js/pay.js
... ... @@ -575,6 +575,14 @@ var webAppClass = {
575 575 // 使用以上方式判断前端返回,微信团队郑重提示:
576 576 //res.err_msg将在用户支付成功后返回ok,但并不保证它绝对可靠。
577 577 window.location.href = webAppPayResult + "?trade_no=" + "success";
  578 +
  579 + setTimeout(function(){
  580 + window.history.go(-2);
  581 + //var src = mUrl.Uri+'/WEB-INF/pages/select.html?openid='+func.openid+'&token='+func.token+"&";//mUrl.myParkCardView;
  582 + //window.location.href = src;
  583 + },3000);
  584 +
  585 +
578 586 } else if (res.err_msg == 'get_brand_wcpay_request:cancel') {
579 587 window.location.href = webAppPayResult + "?trade_no=" + "fail";
580 588 } else {
... ...