chore: 重新与HuaweiPay分支比较,起点
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user