From f39e49d72f5e358bb243aff0d4a07a78217e898d Mon Sep 17 00:00:00 2001 From: suyl <770236076@qq.com> Date: Thu, 10 Jun 2021 10:11:57 +0800 Subject: [PATCH] aa --- business/jxcallback/orderman/orderman_ext.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/business/jxcallback/orderman/orderman_ext.go b/business/jxcallback/orderman/orderman_ext.go index 1dd7992d0..9dc549b1f 100644 --- a/business/jxcallback/orderman/orderman_ext.go +++ b/business/jxcallback/orderman/orderman_ext.go @@ -1460,6 +1460,9 @@ func RefreshJdShopOrdersEarningPrice(ctx *jxcontext.Context, orderStartTime, ord appOrgCode = "320406" } jdapi := partner.CurAPIManager.GetAPI(model.VendorIDJD, appOrgCode).(*jdapi.API) + if configs, err := dao.QueryConfigs(dao.GetDB(), "jdStorePageEarning", model.ConfigTypeCookie, ""); err == nil { + jdapi.SetCookie("user", configs[0].Value) + } results, err := jdapi.GetJdShopOrders(utils.Str2Time(orderStartTime).Format("20060102"), utils.Str2Time(orderEndTime).Format("20060102"), globals.JdOrgCode, globals.JdLoginName) if err != nil { return err