|
@ -515,9 +515,10 @@ public class WxmpMessageServiceImpl implements WxmpMessageService { |
|
|
} else if (WxMsgTemplateSubscribeStatus.UNSUBSCRIBE.equals(wxSubscribeStatus) && "yes".equals(wxAlwaysVisit)) { |
|
|
} else if (WxMsgTemplateSubscribeStatus.UNSUBSCRIBE.equals(wxSubscribeStatus) && "yes".equals(wxAlwaysVisit)) { |
|
|
// 总是+取消
|
|
|
// 总是+取消
|
|
|
wxmpResiUserSubscribeDao.unSubscribe(userId, customerId, templateId, openId); |
|
|
wxmpResiUserSubscribeDao.unSubscribe(userId, customerId, templateId, openId); |
|
|
|
|
|
wxmpResiUserSubscribeDao.clearResiSubscribeCount(openId, templateId, customerId, userId); |
|
|
} else { |
|
|
} else { |
|
|
// 取消
|
|
|
// 取消
|
|
|
wxmpResiUserSubscribeDao.decreaseResiSubscribeCount(openId, templateId, customerId, 1, userId); |
|
|
wxmpResiUserSubscribeDao.unSubscribe(userId, customerId, templateId, openId); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -547,9 +548,10 @@ public class WxmpMessageServiceImpl implements WxmpMessageService { |
|
|
} else if (WxMsgTemplateSubscribeStatus.UNSUBSCRIBE.equals(wxSubscribeStatus) && "yes".equals(wxAlwaysVisit)) { |
|
|
} else if (WxMsgTemplateSubscribeStatus.UNSUBSCRIBE.equals(wxSubscribeStatus) && "yes".equals(wxAlwaysVisit)) { |
|
|
// 取消订阅+总是
|
|
|
// 取消订阅+总是
|
|
|
wxmpWorkUserSubscribeDao.unSubscribe(userId, customerId, templateId, openId); |
|
|
wxmpWorkUserSubscribeDao.unSubscribe(userId, customerId, templateId, openId); |
|
|
|
|
|
wxmpWorkUserSubscribeDao.clearWorkSubscribeCount(openId, templateId, customerId, userId); |
|
|
} else { |
|
|
} else { |
|
|
// 取消订阅+不总是
|
|
|
// 取消订阅+不总是
|
|
|
wxmpWorkUserSubscribeDao.decreaseWorkSubscribeCount(openId, templateId, customerId, 1, userId); |
|
|
wxmpWorkUserSubscribeDao.unSubscribe(userId, customerId, templateId, openId); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|