REQ-3045: url

This commit is contained in:
yanglin 2024-10-23 17:24:45 +08:00
parent 554ddd8934
commit 8271342bf5

View File

@ -85,8 +85,6 @@ public class MessageTemplateParserV3 {
public void visitGroupKeyValue(ParsedGroupV3 group, ParsedKV kv) {
if (!kv.isDisplayOnCard())
return;
if (im.getCardExtension() == null)
im.setCardExtension(new ArrayList<>());
CardExtensionItem item = new CardExtensionItem(kv.getKey(), kv.getValue());
// IM人员: 张三(130****5556)
if (kv.getContentType() == KVContentType.PERSON_ID) {
@ -97,6 +95,8 @@ public class MessageTemplateParserV3 {
"%s(%s)", person.getRealName(), person.maskPhone()));
}
}
if (im.getCardExtension() == null)
im.setCardExtension(new ArrayList<>());
im.getCardExtension().add(item);
}