作者 郑周

1.优化命名

@@ -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  
282 - }  
283 - 281 + } else {
284 success = append(success, command.ErrorI{ 282 success = append(success, command.ErrorI{
285 FileName: fn, 283 FileName: fn,
286 Message: "", 284 Message: "",
287 }) 285 })
288 } 286 }
  287 + }
289 288
  289 + // 解析完成
290 out = command.OutResult{ 290 out = command.OutResult{
291 Status: "completed", 291 Status: "completed",
292 Success: success, 292 Success: success,