正在显示
1 个修改的文件
包含
7 行增加
和
7 行删除
@@ -273,20 +273,20 @@ func (controller *ImportController) ZipImport() { | @@ -273,20 +273,20 @@ func (controller *ImportController) ZipImport() { | ||
273 | }) | 273 | }) |
274 | continue | 274 | continue |
275 | } | 275 | } |
276 | - if err := controller.parserAndInsert(f, fn); err != nil { | 276 | + if err = controller.parserAndInsert(f, fn); err != nil { |
277 | failure = append(failure, command.ErrorI{ | 277 | failure = append(failure, command.ErrorI{ |
278 | FileName: fn, | 278 | FileName: fn, |
279 | Message: err.Error(), | 279 | Message: err.Error(), |
280 | }) | 280 | }) |
281 | - continue | 281 | + } else { |
282 | + success = append(success, command.ErrorI{ | ||
283 | + FileName: fn, | ||
284 | + Message: "", | ||
285 | + }) | ||
282 | } | 286 | } |
283 | - | ||
284 | - success = append(success, command.ErrorI{ | ||
285 | - FileName: fn, | ||
286 | - Message: "", | ||
287 | - }) | ||
288 | } | 287 | } |
289 | 288 | ||
289 | + // 解析完成 | ||
290 | out = command.OutResult{ | 290 | out = command.OutResult{ |
291 | Status: "completed", | 291 | Status: "completed", |
292 | Success: success, | 292 | Success: success, |
-
请 注册 或 登录 后发表评论