From cee35875c758b8cd2830a4c7aae6193ff5c1508e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Fri, 18 Apr 2025 10:37:33 +0800 Subject: [PATCH] 1 --- business/jxcallback/orderman/orderman_ext.go | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/business/jxcallback/orderman/orderman_ext.go b/business/jxcallback/orderman/orderman_ext.go index a9361d537..aabf8812b 100644 --- a/business/jxcallback/orderman/orderman_ext.go +++ b/business/jxcallback/orderman/orderman_ext.go @@ -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 }