feat: 按钮操作区域过滤掉不显示在卡片的按钮
This commit is contained in:
parent
e1983dc811
commit
50010571fb
@ -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());
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user