This commit is contained in:
苏尹岚
2020-11-19 11:10:49 +08:00
parent 66d917aea0
commit c8ceeb6453

View File

@@ -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)