use of com.dtp.core.context.DtpContext in project dynamic-tp by lyh200.
the class DtpWechatNotifier method sendAlarmMsg.
@Override
public void sendAlarmMsg(NotifyTypeEnum typeEnum) {
DtpContext contextWrapper = DtpContextHolder.get();
NotifyPlatform platform = contextWrapper.getPlatform(NotifyPlatformEnum.WECHAT.name());
String content = buildAlarmContent(platform, typeEnum, WECHAT_ALARM_TEMPLATE);
if (StringUtils.isBlank(content)) {
return;
}
doSend(platform, content);
}
Aggregations