feat: 按钮操作区域过滤掉不显示在卡片的按钮

This commit is contained in:
songyuanlun 2024-01-05 11:29:13 +08:00
parent e1983dc811
commit 50010571fb

View File

@ -14,6 +14,7 @@ import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang3.BooleanUtils;
import org.apache.commons.lang3.StringUtils;
import java.io.Serializable;
@ -125,6 +126,7 @@ public class GeneralMessagePushVO implements Serializable {
}
return msgTemplateRouter.getRouteButtons().stream()
.map(CardButton::from)
.filter(b -> BooleanUtils.isTrue(b.isOverCard))
.collect(Collectors.toList());
}