From 904f37a15bf4cb451575c89c032391106d10bf89 Mon Sep 17 00:00:00 2001 From: octopus_yan Date: Thu, 21 Nov 2024 17:42:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20csv=E7=BF=BB=E8=AF=91=E6=96=87=E6=9C=AC?= =?UTF-8?q?=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/cn/octopusyan/dmt/utils/PBOUtil.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/cn/octopusyan/dmt/utils/PBOUtil.java b/src/main/java/cn/octopusyan/dmt/utils/PBOUtil.java index 60f23c0..b6b1238 100644 --- a/src/main/java/cn/octopusyan/dmt/utils/PBOUtil.java +++ b/src/main/java/cn/octopusyan/dmt/utils/PBOUtil.java @@ -366,14 +366,14 @@ public class PBOUtil { if (StringUtils.isEmpty(original)) continue; // 是否可格式化读取 - if (row.size() == 15) { + if (row.size() >= 15) { - String chinese = row.get(11); + String chinese = row.get(14); // 已有中文翻译,则跳过 if (containsChinese(chinese)) continue; - item = new WordCsvItem(file, lines, original, chinese, row.get(14)); + item = new WordCsvItem(file, lines, original, chinese, row.get(11)); } else { item = new WordCsvItem(file, lines, row.getFirst(), original); }