fix: 卡导入 Excel 解析移除虚拟号强制校验
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 7m19s
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 7m19s
虚拟号(virtual_no)为可选字段,解析时不应强制要求填写。 与 processBatch 中的处理逻辑保持一致。 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -269,15 +269,6 @@ func parseCardRows(rows [][]string) (*CSVParseResult, error) {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
if virtualNo == "" {
|
|
||||||
result.ParseErrors = append(result.ParseErrors, CSVParseError{
|
|
||||||
Line: lineNum,
|
|
||||||
ICCID: iccid,
|
|
||||||
Reason: "虚拟号(virtual_no)不能为空",
|
|
||||||
})
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
|
|
||||||
result.Cards = append(result.Cards, CardInfo{
|
result.Cards = append(result.Cards, CardInfo{
|
||||||
ICCID: iccid,
|
ICCID: iccid,
|
||||||
MSISDN: msisdn,
|
MSISDN: msisdn,
|
||||||
|
|||||||
Reference in New Issue
Block a user