Commit d717d299 by Jarvis

消息订阅接口字段修改

parent 45d14fa1
...@@ -754,7 +754,7 @@ wxService.page({ ...@@ -754,7 +754,7 @@ wxService.page({
//消息订阅 //消息订阅
let baseUserInfo = wx.getStorageSync('_baseUserInfo'); let baseUserInfo = wx.getStorageSync('_baseUserInfo');
wxService.post(`${'/merchant/message/wxSubMsgMapping/getListByParams'}`, { wxService.post(`${'/merchant/message/wxSubMsgMapping/getListByParams'}`, {
scenarioIds: ['ordersend', 'ordersign'], scenarioIds: ['ordersend', 'orderconfirm'],
sourceFrom: 2, sourceFrom: 2,
switchType: 3 switchType: 3
}).then(res => { }).then(res => {
......
...@@ -82,6 +82,7 @@ wxService.page({ ...@@ -82,6 +82,7 @@ wxService.page({
wxService.post('/sale/refund/buyer/create', params).then(res => { wxService.post('/sale/refund/buyer/create', params).then(res => {
if (res) { if (res) {
const { result, data } = res.data const { result, data } = res.data
let refundId = data;
if (result == 0) { if (result == 0) {
wx.hideLoading() wx.hideLoading()
wx.showToast({ wx.showToast({
...@@ -91,7 +92,7 @@ wxService.page({ ...@@ -91,7 +92,7 @@ wxService.page({
// 消息订阅 // 消息订阅
let baseUserInfo = wx.getStorageSync('_baseUserInfo'); let baseUserInfo = wx.getStorageSync('_baseUserInfo');
wxService.post(`${'/merchant/message/wxSubMsgMapping/getListByParams'}`, { wxService.post(`${'/merchant/message/wxSubMsgMapping/getListByParams'}`, {
scenarioIds: ['orderrefundfinsh', 'orderrefundcheck'], scenarioIds: ['orderrefundcheck', 'orderrefundpayback'],
sourceFrom: 2, sourceFrom: 2,
switchType: 3 switchType: 3
}).then(res => { }).then(res => {
...@@ -105,7 +106,7 @@ wxService.page({ ...@@ -105,7 +106,7 @@ wxService.page({
success: (res)=>{ success: (res)=>{
for(let i = 0; i < tempArr.length; i++){ for(let i = 0; i < tempArr.length; i++){
wxService.post(`${'/merchant/message/wxSubMsgSubscride/member/subscribe'}`, { wxService.post(`${'/merchant/message/wxSubMsgSubscride/member/subscribe'}`, {
businessId: _self.data.id, businessId: refundId,
memberId: baseUserInfo.memberId, memberId: baseUserInfo.memberId,
scenarioId:tempArr[i].scenarioId, scenarioId:tempArr[i].scenarioId,
templateId: tempArr[i].templateId 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