图片调整
This commit is contained in:
@@ -242,17 +242,17 @@ export default {
|
||||
console.log('未完成订单数组共有:=》', that.ComplateRequestArr.length)
|
||||
if (results && results.length > 0) {
|
||||
results.map((item, index) => {
|
||||
// "0"为正在支付;"1"为支付成功;"2"为支付失败;"3"为支付已恢复。
|
||||
if (item.transactionState == '1') {
|
||||
// 已经支付,但是没有走逻辑的内购订单 就发给后台做验证
|
||||
that.iapCheck('未完成订单的验证', item, index)
|
||||
// that.finishTransaction(item)
|
||||
} else if (item.transactionState != '1' || item.transactionState != '0') {
|
||||
// 不是正在支付订单,也不是已经支付订单就关闭掉
|
||||
// 其他状态的内购订单
|
||||
that.finishTransaction(item)
|
||||
}
|
||||
})
|
||||
// "0"为正在支付;"1"为支付成功;"2"为支付失败;"3"为支付已恢复。
|
||||
// if (item.transactionState == '1') {
|
||||
// // 已经支付,但是没有走逻辑的内购订单 就发给后台做验证
|
||||
// that.iapCheck('未完成订单的验证', item, index)
|
||||
// // that.finishTransaction(item)
|
||||
// } else if (item.transactionState != '1' || item.transactionState != '0') {
|
||||
// // 不是正在支付订单,也不是已经支付订单就关闭掉
|
||||
// // 其他状态的内购订单
|
||||
// }
|
||||
that.finishTransaction(item);
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
@@ -263,7 +263,8 @@ export default {
|
||||
})
|
||||
this.iapChannel = await this.getProvider()
|
||||
if (this.iapChannel) {
|
||||
this.requestOrder();
|
||||
await this.restoreComplateRequest();
|
||||
await this.requestOrder();
|
||||
} else {
|
||||
uni.hideLoading()
|
||||
uni.showToast({
|
||||
@@ -328,7 +329,7 @@ export default {
|
||||
};
|
||||
$http
|
||||
.request({
|
||||
url: "/Ipa/veri",
|
||||
url: "Ipa/veri",
|
||||
method: "POST",
|
||||
data,
|
||||
header: {
|
||||
@@ -344,7 +345,7 @@ export default {
|
||||
icon: 'success'
|
||||
})
|
||||
// 服务器验证票据有效后在客户端关闭订单 (iapChannel.finishTransaction)
|
||||
that.finishTransaction(result);
|
||||
//that.finishTransaction(result);
|
||||
}
|
||||
})
|
||||
.catch((e) => {
|
||||
@@ -359,6 +360,7 @@ export default {
|
||||
}
|
||||
},
|
||||
});
|
||||
//that.finishTransaction(result);
|
||||
}, )
|
||||
},
|
||||
getDevName() {
|
||||
|
||||
Reference in New Issue
Block a user