Commit d717d299 by Jarvis

消息订阅接口字段修改

parent 45d14fa1
......@@ -754,7 +754,7 @@ wxService.page({
//消息订阅
let baseUserInfo = wx.getStorageSync('_baseUserInfo');
wxService.post(`${'/merchant/message/wxSubMsgMapping/getListByParams'}`, {
scenarioIds: ['ordersend', 'ordersign'],
scenarioIds: ['ordersend', 'orderconfirm'],
sourceFrom: 2,
switchType: 3
}).then(res => {
......
......@@ -82,6 +82,7 @@ wxService.page({
wxService.post('/sale/refund/buyer/create', params).then(res => {
if (res) {
const { result, data } = res.data
let refundId = data;
if (result == 0) {
wx.hideLoading()
wx.showToast({
......@@ -91,7 +92,7 @@ wxService.page({
// 消息订阅
let baseUserInfo = wx.getStorageSync('_baseUserInfo');
wxService.post(`${'/merchant/message/wxSubMsgMapping/getListByParams'}`, {
scenarioIds: ['orderrefundfinsh', 'orderrefundcheck'],
scenarioIds: ['orderrefundcheck', 'orderrefundpayback'],
sourceFrom: 2,
switchType: 3
}).then(res => {
......@@ -105,7 +106,7 @@ wxService.page({
success: (res)=>{
for(let i = 0; i < tempArr.length; i++){
wxService.post(`${'/merchant/message/wxSubMsgSubscride/member/subscribe'}`, {
businessId: _self.data.id,
businessId: refundId,
memberId: baseUserInfo.memberId,
scenarioId:tempArr[i].scenarioId,
templateId: tempArr[i].templateId
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment