huangct пре 8 година
родитељ
комит
7ef3a28466
1 измењених фајлова са 7 додато и 2 уклоњено
  1. 7 2
      donate-service/src/main/webapp/resources/js/project/app.js

+ 7 - 2
donate-service/src/main/webapp/resources/js/project/app.js

@@ -101,7 +101,7 @@ define([ 'angularAMD', 'ui.router', 'ui-bootstrap', 'ngLocal', 'ngTable', 'commo
 
             $.ajax({
                 type : "POST",
-                url : "/wxpay/queryTradeState",
+                url : "/wxpay/queryProjectRecodeState",
                 dataType : "json",
                 data: {
                     outTradeNo : outTradeNo
@@ -110,8 +110,13 @@ define([ 'angularAMD', 'ui.router', 'ui-bootstrap', 'ngLocal', 'ngTable', 'commo
                     if ("SUCCESS" == res) {
                         self.clearInterval(orderInterval);
                         window.location.href = "http://lj.ubtob.com/project#/donationsOver/" + outTradeNo;
+                    } else if ("WAITING" == res) {
+                        console.log("微信订单待支付");
+                    } else if ("EXCEPTION" == res) {
+                        self.clearInterval(orderInterval);
+                        console.log("订单异常");
                     } else if ("ERROR" == res) {
-                        console.log("查询微信订单错误");
+                        console.log("查询订单失败");
                     }
                 },
                 error : function () {