From 8cc0b3f0da7fe64b7646f9f578c6509675a5619b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Mon, 1 Feb 2021 15:05:30 +0800 Subject: [PATCH] aa --- business/jxcallback/orderman/orderman_ext.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/business/jxcallback/orderman/orderman_ext.go b/business/jxcallback/orderman/orderman_ext.go index 52d2d458c..5699a19f6 100644 --- a/business/jxcallback/orderman/orderman_ext.go +++ b/business/jxcallback/orderman/orderman_ext.go @@ -870,7 +870,7 @@ func (c *OrderManager) GetAfsOrders(ctx *jxcontext.Context, keyword, afsOrderID, if permission.IsRoled(ctx) { if storeIDsMap, err := permission.GetUserStoresResultMap(ctx.GetUserID()); err == nil { var storeIDs2 []int - if storeIDList != nil { + if len(storeIDList) > 0 { for _, v := range storeIDList { if storeIDsMap[v] != 0 { storeIDs2 = append(storeIDs2, v) @@ -881,6 +881,7 @@ func (c *OrderManager) GetAfsOrders(ctx *jxcontext.Context, keyword, afsOrderID, storeIDs2 = append(storeIDs2, k) } } + storeIDList = nil storeIDList = storeIDs2 } }