同步错误

This commit is contained in:
苏尹岚
2020-01-07 14:53:23 +08:00
parent 617b361fbe
commit e813e81ed8

View File

@@ -629,6 +629,7 @@ func (v *VendorSync) LoopStoresMap2(ctx *jxcontext.Context, db *dao.DaoDB, taskN
task.SetFinishHook(func(task tasksch.ITask, ctx *jxcontext.Context) {
if len(task.GetErrMsg()) > 10 {
err = WirteToExcelBySyncFailed(task, ctx)
err = buildErrMsg(task)
} else {
err = buildErrMsg(task)
}