REQ-3502: 添加bizCode和subBizCode
This commit is contained in:
parent
08b92c7da8
commit
76c8eb2bc3
@ -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
|
||||
|
||||
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user