微信公众号配置、OA审批通知、待办提醒底层消息推送代码。
This commit is contained in:
parent
a68f23c844
commit
cf23751ed3
@ -38,9 +38,9 @@ public class SubscribeMessageSendApiImpl implements SubscribeMessageSendApi {
|
|||||||
//发送审批结果通知
|
//发送审批结果通知
|
||||||
String type = reqDTO.getMinOrMpType() ;
|
String type = reqDTO.getMinOrMpType() ;
|
||||||
if( type == null || type.equals("1") ) {
|
if( type == null || type.equals("1") ) {
|
||||||
socialClientService.getWxMpService().getTemplateMsgService().sendTemplateMsg(initWxMpSubscribeMessage(reqDTO)) ;
|
|
||||||
} else {
|
|
||||||
socialClientService.getWxMaService().getMsgService().sendSubscribeMsg(initWxMaSubscribeMessage(reqDTO));
|
socialClientService.getWxMaService().getMsgService().sendSubscribeMsg(initWxMaSubscribeMessage(reqDTO));
|
||||||
|
} else {
|
||||||
|
socialClientService.getWxMpService().getTemplateMsgService().sendTemplateMsg(initWxMpSubscribeMessage(reqDTO)) ;
|
||||||
}
|
}
|
||||||
return success(1L);
|
return success(1L);
|
||||||
}
|
}
|
||||||
@ -51,9 +51,10 @@ public class SubscribeMessageSendApiImpl implements SubscribeMessageSendApi {
|
|||||||
//发送OA流程待办提醒
|
//发送OA流程待办提醒
|
||||||
String type = reqDTO.getMinOrMpType() ;
|
String type = reqDTO.getMinOrMpType() ;
|
||||||
if( type == null || type.equals("1") ) {
|
if( type == null || type.equals("1") ) {
|
||||||
socialClientService.getWxMpService().getTemplateMsgService().sendTemplateMsg(initWxMpSubscribeMessage(reqDTO)) ;
|
|
||||||
} else {
|
|
||||||
socialClientService.getWxMaService().getMsgService().sendSubscribeMsg(initWxMaSubscribeMessage(reqDTO));
|
socialClientService.getWxMaService().getMsgService().sendSubscribeMsg(initWxMaSubscribeMessage(reqDTO));
|
||||||
|
} else {
|
||||||
|
socialClientService.getWxMpService().getTemplateMsgService().sendTemplateMsg(initWxMpSubscribeMessage(reqDTO)) ;
|
||||||
|
|
||||||
}
|
}
|
||||||
return success(1L);
|
return success(1L);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user