Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
yanhom1314 committed Jul 14, 2023
2 parents 10b0b17 + 3060b91 commit 39d04b4
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
@Slf4j
public class DingNotifier extends AbstractHttpNotifier {

private final static String ALL = "all";

@Override
public String platform() {
return NotifyPlatformEnum.DING.name().toLowerCase();
Expand All @@ -58,7 +60,7 @@ protected String buildMsgBody(NotifyPlatform platform, String content) {

List<String> mobiles = Lists.newArrayList(getNotifyReceivers(platform));
at.setAtMobiles(mobiles);
if (CollectionUtils.isEmpty(mobiles)) {
if (mobiles.contains(ALL) || CollectionUtils.isEmpty(mobiles)) {
at.setAtAll(true);
}

Expand All @@ -76,7 +78,8 @@ protected String buildUrl(NotifyPlatform platform) {

/**
* Build target url.
* @param secret secret
*
* @param secret secret
* @param accessToken accessToken
* @return url
*/
Expand Down

0 comments on commit 39d04b4

Please sign in to comment.