chore: 重新与HuaweiPay分支比较,起点

This commit is contained in:
Zhukj
2025-12-10 11:20:42 +08:00
parent 5bd0881946
commit f1c01833e4
10 changed files with 209 additions and 569 deletions

View File

@@ -137,7 +137,7 @@
this.isMatched = 1;
return;
}
let options = uni.getLaunchOptionsSync();
let options = wx.getLaunchOptionsSync();
this.$api.sendRequest({
url: '/shopcomponent/api/weapp/scenecheck',
data: {
@@ -357,7 +357,7 @@
out_trade_no: this.payInfo.out_trade_no,
pay_type: payType.type,
is_matched: this.isMatched,
scene: uni.getStorageSync('is_test') ? 1175 : uni.getLaunchOptionsSync().scene
scene: uni.getStorageSync('is_test') ? 1175 : wx.getLaunchOptionsSync().scene
},
success: res => {
uni.hideLoading();
@@ -365,7 +365,7 @@
var payData = res.data.data;
// #ifdef MP-WEIXIN
var scene = uni.getStorageSync('is_test') ? 1175 : uni.getLaunchOptionsSync()
var scene = uni.getStorageSync('is_test') ? 1175 : wx.getLaunchOptionsSync()
.scene;
if ([1175, 1176, 1177, 1191, 1195].indexOf(scene) != -1) {
uni.requestOrderPayment({