From c8ceeb645360a7248c62816a7c4731cee93e068c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Thu, 19 Nov 2020 11:10:49 +0800 Subject: [PATCH] cookie --- business/jxstore/tempop/tempop.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/business/jxstore/tempop/tempop.go b/business/jxstore/tempop/tempop.go index 02ac2e232..b5660b651 100644 --- a/business/jxstore/tempop/tempop.go +++ b/business/jxstore/tempop/tempop.go @@ -1728,6 +1728,9 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) { dao.WrapAddIDCULDEntity(storeMap, "jxadmin") err = dao.CreateEntity(db, storeMap) + if configs, err := dao.QueryConfigs(dao.GetDB(), "jdsCookie2", model.ConfigTypeCookie, ""); err == nil { + api.JdShop2API.SetCookieWithStr(configs[0].Value) + } if shopDetailResult, err := api.JdShop2API.ShopDetail(utils.Str2Int(vendorStoreID)); err == nil { if store.Licence != "" { data, _, _ := jxutils.DownloadFileByURL(store.Licence)