fix: 修复微信小程序订阅消息提醒时机

This commit is contained in:
lidongtony
2023-03-29 16:23:08 +08:00
parent 276e25ef35
commit 0da574b654
5 changed files with 426 additions and 481 deletions
+2 -2
View File
@@ -135,7 +135,7 @@ export default class SheepPay {
const { error, data } = await this.prepay();
if (error === 0) {
const redirect_url = `${getRootUrl()}pages/pay/result?orderSN=${this.orderSN}&payment=${this.payment
}`;
}&orderType=${this.orderType}`;
location.href = `${data.pay_data.h5_url}&redirect_url=${encodeURIComponent(redirect_url)}`;
}
}
@@ -145,7 +145,7 @@ export default class SheepPay {
let { error, data } = await this.prepay();
if (error === 0) {
const redirect_url = `${getRootUrl()}pages/pay/result?orderSN=${this.orderSN}&payment=${this.payment
}`;
}&orderType=${this.orderType}`;
location.href = data.pay_data + encodeURIComponent(redirect_url);
}
}