REQ-3502: 添加bizCode和subBizCode

This commit is contained in:
yanglin 2025-01-16 16:57:24 +08:00
parent 08b92c7da8
commit 76c8eb2bc3
2 changed files with 3 additions and 2 deletions

View File

@ -152,8 +152,7 @@ class CardParser {
bizBody.setCardButtons(new ArrayList<>());
CardButton imButton = new CardButton();
// IM最多显示3个, 可能会存在仅发起人可见的按钮1个, 3 + 1 = 4
if (bizBody.getCardButtons().size() < 4)
if (bizBody.getCardButtons().size() < cardProps.getMaxSendingCardButtonsCount())
bizBody.getCardButtons().add(imButton);
String actionPerformed = buttonInterceptor

View File

@ -22,6 +22,8 @@ public class CardProps {
private boolean deleteCardsWhenSendFail = true;
private boolean enableCardIdempotent = true;
private int updateCardBatchSize = 200;
// IM最多显示3个, 可能会存在仅发起人可见的按钮1个, 3 + 1 = 4, 避免消息超长
private int maxSendingCardButtonsCount = 4;
private Set<String> idempotentFreeTemplateCodes = new HashSet<>();
boolean isIdempotentFree(String templateCode) {