添加订阅消息模板
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user