mirror of
https://gitee.com/dromara/sms4j.git
synced 2025-12-08 01:48:38 +08:00
解析的html内容单独放置于一个字段
This commit is contained in:
parent
c1a4482797
commit
e7c7655e31
@ -20,6 +20,9 @@ public class MonitorMessage {
|
|||||||
/** 邮件文字内容*/
|
/** 邮件文字内容*/
|
||||||
private String text;
|
private String text;
|
||||||
|
|
||||||
|
/** 解析的html内容*/
|
||||||
|
private String htmlText;
|
||||||
|
|
||||||
/** 邮件发送时间*/
|
/** 邮件发送时间*/
|
||||||
private Date sendDate;
|
private Date sendDate;
|
||||||
|
|
||||||
|
|||||||
@ -79,7 +79,7 @@ public class MonitorService{
|
|||||||
monitorMessage.setText(bodyPart.getContent().toString());
|
monitorMessage.setText(bodyPart.getContent().toString());
|
||||||
} else if (contentType.startsWith("text/html")) {
|
} else if (contentType.startsWith("text/html")) {
|
||||||
// HTML内容
|
// HTML内容
|
||||||
monitorMessage.setText(bodyPart.getContent().toString());
|
monitorMessage.setHtmlText(bodyPart.getContent().toString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
monitorMessage.setBody(mp);
|
monitorMessage.setBody(mp);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user