格式化飞书通知跳转链接方法错误

This commit is contained in:
feng.li
2024-01-26 13:54:48 +08:00
parent e642fa1cf4
commit c451c66136

View File

@@ -193,7 +193,7 @@ public class EventCenterHttpRequest {
res.put(PC_PATH_KEY, pcMessageFormat.format(objects));
}
if (mobilePath.contains("{0}")) {
MessageFormat mobileMessageFormat = new MessageFormat(pcPath);
MessageFormat mobileMessageFormat = new MessageFormat(mobilePath);
paramsCount = Math.max(mobileMessageFormat.getFormatsByArgumentIndex().length, paramsCount);
res.put(MOBILE_PATH_KEY, mobileMessageFormat.format(objects));
}