REQ-3045: 不要在链接中保留过多无用的字段

This commit is contained in:
yanglin 2024-10-12 17:40:44 +08:00
parent 4310ac2499
commit 0dee318578

View File

@ -46,7 +46,8 @@ public class MessageTemplateButtonV3ServiceImpl implements MessageTemplateButton
if (item.getCategory() == RouterCategoryEnum.ACTION) {
item.setUrlConfig(null);
}
if (item.getUrlConfig() != null) {
if (item.getCategory() != RouterCategoryEnum.JUMP
&& item.getUrlConfig() != null) {
item.getUrlConfig().setFieldsNullIfUrlAbsent();
}
return buttonV3;