1
This commit is contained in:
@@ -644,19 +644,14 @@ func (c *OrderManager) ExportOrders(ctx *jxcontext.Context, fromDateStr, toDateS
|
||||
}, 5)
|
||||
tasksch.ManageTask(task).Run()
|
||||
if !isAsync {
|
||||
resultList, err2 := task.GetResult(0)
|
||||
globals.SugarLogger.Debugf("-----------err := %v", err)
|
||||
globals.SugarLogger.Debugf("-----------resultList := %s", utils.Format4Output(resultList, false))
|
||||
if err = err2; err == nil {
|
||||
if len(resultList) == 0 {
|
||||
hint = "1" // todo 暂时这样
|
||||
} else {
|
||||
hint = jxutils.TaskResult2Hint(resultList)
|
||||
}
|
||||
if result, err := task.GetResult(0); err == nil {
|
||||
globals.SugarLogger.Debugf("--------result:= %s", utils.Format4Output(result, false))
|
||||
hint = "22"
|
||||
}
|
||||
} else {
|
||||
hint = task.GetID()
|
||||
}
|
||||
|
||||
return hint, err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user