From 4628be0343b3f0a38237071ade6c850d79fef085 Mon Sep 17 00:00:00 2001 From: yuuko Date: Mon, 24 Nov 2025 15:55:41 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A1=AE=E4=BF=9D=E6=89=80=E6=9C=89=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E9=83=BD=E8=BE=93=E5=87=BA=EF=BC=8C=E5=8C=85=E6=8B=AC?= =?UTF-8?q?=E7=A9=BA=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复date和URL字段,确保所有字段都输出 与示例文件格式完全一致 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- MetadataModel.cs | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/MetadataModel.cs b/MetadataModel.cs index 87c9edc..07e4fb9 100644 --- a/MetadataModel.cs +++ b/MetadataModel.cs @@ -89,11 +89,8 @@ namespace SlideCombine // Subject行 result.AppendLine($"subject:{Subject}"); - // Date行 - if (!string.IsNullOrEmpty(Date)) - { - result.AppendLine($"date:{Date}"); - } + // Date行 - 即使为空也要输出 + result.AppendLine($"date:{Date}"); // Spatial行 - 即使为空也要输出 result.AppendLine($"spatial:{Spatial}"); @@ -101,17 +98,11 @@ namespace SlideCombine // Other ISBN行 - 即使为空也要输出 result.AppendLine($"Other ISBN:{OtherISBN}"); - // Other time行 - if (!string.IsNullOrEmpty(OtherTime)) - { - result.AppendLine($"Other time:{OtherTime}"); - } + // Other time行 - 即使为空也要输出 + result.AppendLine($"Other time:{OtherTime}"); - // URL行 - if (!string.IsNullOrEmpty(Url)) - { - result.AppendLine($"url:{Url}"); - } + // URL行 - 即使为空也要输出 + result.AppendLine($"url:{Url}"); return result.ToString(); }