|
|
@@ -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 () {
|