|
@@ -232,8 +232,21 @@ Page({
|
|
|
// this.createWeChatPayMentRecord(orderNo,this.data.amount);
|
|
|
// },200)
|
|
|
},
|
|
|
- fail (res) {
|
|
|
- console.log("fail",res);
|
|
|
+ fail (failRes) {
|
|
|
+ wx.request({
|
|
|
+ url: app.globalData.interfaceUrls.cancelPay+orderNo+"/wechat",
|
|
|
+ method: 'POST',
|
|
|
+ header: {
|
|
|
+ 'content-type': 'application/json',
|
|
|
+ 'token': app.globalData.userWxInfo.token,
|
|
|
+ 'source': "wc",
|
|
|
+ '!SAAS_LOGIN_TOKEN_!': app.globalData.currentAccountInfo.dsKey
|
|
|
+ },
|
|
|
+ data: {},
|
|
|
+ success(res) { },
|
|
|
+ fail(error) { }
|
|
|
+ });
|
|
|
+ console.log("fail",failRes);
|
|
|
},
|
|
|
complete: (res) => {
|
|
|
console.log("complete",res);
|