添加订阅消息模板

This commit is contained in:
Dev
2026-09-23 17:06:46 +08:00
parent b9842528d4
commit eb5acfc466
6 changed files with 19 additions and 20 deletions
@@ -432,7 +432,7 @@ Page({
//订阅发货通知
if (data.order_type == 0) {
wx.requestSubscribeMessage({
tmplIds: ['OzA14wCKihBZBrZUiaE-WpSVoFFSecun-vlDWUtEEEE'],
tmplIds: ['jGxNQ11on1yD0d5tGwk4S8jP_CEdddfAkrp9-xVeeZY'],
complete: (re) => {
this.handlePay(data, settleDetailData);
}
@@ -94,9 +94,8 @@ export const payFail = (payOrderInfo, resultMsg) => {
export const wechatPayOrder = (payOrderInfo) => {
const payInfo = payOrderInfo.payInfo;
const { timeStamp, nonceStr, signType, paySign } = payInfo;
paySuccess(payOrderInfo);
return new Promise((resolve) => {
// resolve();
// 只有 wx.requestPayment 回调 success 才认为是支付成功,不能提前跳转支付结果页
wx.requestPayment({
timeStamp,
nonceStr,