caishunfeng commented on code in PR #11033:
URL: https://github.com/apache/dolphinscheduler/pull/11033#discussion_r944059903
##########
dolphinscheduler-alert/dolphinscheduler-alert-plugins/dolphinscheduler-alert-email/src/main/java/org/apache/dolphinscheduler/plugin/alert/email/EmailAlertChannel.java:
##########
@@ -38,6 +46,20 @@ public AlertResult process(AlertInfo info) {
if (null == paramsMap) {
return new AlertResult("false", "mail params is null");
}
+ // Converts an object type to an array type to prevent subsequent
conversions from reporting errors
+ if (StringUtils.isNotEmpty(alert.getContent())) {
Review Comment:
> > @jackfanwan why not just handle before `getTextTypeMessage`? Because I
found the content of the Email Table type is defferent, see
`getTableTypeMessage`.
>
> Excuse me, do I still need to make changes?
Sorry for my late, I think it's need and you had updated it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]