Commit c2b59d6f authored by jiangjiantao's avatar jiangjiantao

支付bugfix

parent 96a7b480
var api = require("../../utils/api.js");
var payUtils = require("../../utils/payUtils.js"); var payUtils = require("../../utils/payUtils.js");
Page({ Page({
...@@ -97,11 +98,11 @@ Page({ ...@@ -97,11 +98,11 @@ Page({
}); });
// } // }
}else{ }else{
console.log("支付回调失败,toast提示 "); console.log("支付回调失败 ===》 "+res.message);
my.ix.offCashierEventReceive(); my.ix.offCashierEventReceive();
my.showToast({ my.showToast({
type: 'fail', type: 'fail',
content: res.data, content: res.message,
duration: 2000 duration: 2000
}); });
} }
......
...@@ -235,7 +235,7 @@ function retryOrFailed(tradeNo, payCode, payPrice, list, callback, retryCount){ ...@@ -235,7 +235,7 @@ function retryOrFailed(tradeNo, payCode, payPrice, list, callback, retryCount){
pay(tradeNo, payCode, payPrice, list, callback, ++retryCount); pay(tradeNo, payCode, payPrice, list, callback, ++retryCount);
} else { } else {
console.log("支付接口重试超限,支付失败"); console.log("支付接口重试超限,支付失败");
var response = {resultCode:-1,message:"支付失败"}; var response = {resultCode:-1,message:"支付接口重试超限,支付失败"};
callback(response); callback(response);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment