删除无用代码

This commit is contained in:
yanglin 2024-12-30 19:42:13 +08:00
parent 87f43e84f1
commit c248683078
2 changed files with 0 additions and 8 deletions

View File

@ -163,12 +163,6 @@ class CardParser {
return bizBody;
}
private boolean isPerformActionAvailable(ParsedButtonV3 button) {
if (cardProps.getPerformActionSystemButtonCodes().contains(button.getCode()))
return true;
return button.isPerformActionAvailable();
}
private static List<AppLink> getNativeAppLinks(UrlConfig urlConfig) {
if (urlConfig == null) return Collections.emptyList();
NativeAppLinkUrlConfigVisitor visitor = new NativeAppLinkUrlConfigVisitor();

View File

@ -1,6 +1,5 @@
package cn.axzo.msg.center.message.service.card;
import com.google.common.collect.Sets;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
@ -24,7 +23,6 @@ public class CardProps {
private boolean enableCardIdempotent = true;
private int updateCardBatchSize = 200;
private Set<String> idempotentFreeTemplateCodes = new HashSet<>();
private Set<String> performActionSystemButtonCodes = Sets.newHashSet("");
boolean isIdempotentFree(String templateCode) {
return getIdempotentFreeTemplateCodes().contains(templateCode);