////////////////////////
支付成功后却没有成功回调,导致用户投诉账号被封
出现问题的用户不少,
目前解决办法:暂时在支付后再查询用户订单是否支付过,再决定用户是否支付成功
/////////////////
//请求支付接口
payment : function(redpack_result){
var that = this ;
wx.requestPayment({
‘timeStamp’ : redpack_result.timeStamp,
‘nonceStr’ : redpack_result.nonceStr,
‘package’ : redpack_result.package,
‘paySign’ : redpack_result.paySign,
‘signType’ : ‘MD5’,
‘success’ : function(res){
console.log(“成功”,res)
var let_url = ‘…/share_page/share_page’;
wx.showToast({
title:‘生成海报中’,
icon: ‘loading’,
duration: 1000
})
wx.redirectTo({url: let_url})
},
‘fail’:function(res){
console.log(“支付回调失败”,res)
that.DETAIL(function©{
if(c==‘0’){
console.log(“成功”,res)
var let_url = ‘…/share_page/share_page’;
wx.showToast({
title:‘生成海报中’,
icon: ‘loading’,
duration: 1000
})
wx.redirectTo({url: let_url})
}else{
wx.showModal({
title: ‘提示’,
content: ‘支付失败’,
confirmText: ‘朕知道了’,
showCancel:false,
success: function(res) {
if (res.confirm) {
console.log(‘用户点击确定’)
} else if (res.cancel) {
console.log(‘用户点击取消’)
}
}
})
}
})
}
})
},