From 2586ba37db43af586fc161c058356fea0a3f4a31 Mon Sep 17 00:00:00 2001 From: suyl <770236076@qq.com> Date: Wed, 23 Jun 2021 17:04:42 +0800 Subject: [PATCH] aa --- business/jxcallback/orderman/orderman_ext.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/business/jxcallback/orderman/orderman_ext.go b/business/jxcallback/orderman/orderman_ext.go index 2fe6aa28f..c60e76cc6 100644 --- a/business/jxcallback/orderman/orderman_ext.go +++ b/business/jxcallback/orderman/orderman_ext.go @@ -400,7 +400,11 @@ func (c *OrderManager) GetOrders(ctx *jxcontext.Context, isIncludeFake bool, fro }, orders) tasksch.HandleTask(task, nil, true).Run() result, _ := task.GetResult(0) - pagedInfo.Data = result + if len(result) > 0 { + pagedInfo.Data = result + } else { + pagedInfo.Data = orders + } } else { pagedInfo.Data = orders }