From 23e12d8a733cdfabab3d3ba183bc8b1df858f03a Mon Sep 17 00:00:00 2001 From: huang Date: Fri, 10 Apr 2026 11:58:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8D=A1=E5=AF=BC=E5=85=A5=20Excel=20?= =?UTF-8?q?=E8=A7=A3=E6=9E=90=E7=A7=BB=E9=99=A4=E8=99=9A=E6=8B=9F=E5=8F=B7?= =?UTF-8?q?=E5=BC=BA=E5=88=B6=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 虚拟号(virtual_no)为可选字段,解析时不应强制要求填写。 与 processBatch 中的处理逻辑保持一致。 Co-Authored-By: Claude Sonnet 4.6 --- pkg/utils/excel.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/pkg/utils/excel.go b/pkg/utils/excel.go index 9fbcef6..7a6a323 100644 --- a/pkg/utils/excel.go +++ b/pkg/utils/excel.go @@ -269,15 +269,6 @@ func parseCardRows(rows [][]string) (*CSVParseResult, error) { continue } - if virtualNo == "" { - result.ParseErrors = append(result.ParseErrors, CSVParseError{ - Line: lineNum, - ICCID: iccid, - Reason: "虚拟号(virtual_no)不能为空", - }) - continue - } - result.Cards = append(result.Cards, CardInfo{ ICCID: iccid, MSISDN: msisdn,