cookie
This commit is contained in:
@@ -1728,6 +1728,9 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) {
|
|||||||
dao.WrapAddIDCULDEntity(storeMap, "jxadmin")
|
dao.WrapAddIDCULDEntity(storeMap, "jxadmin")
|
||||||
err = dao.CreateEntity(db, storeMap)
|
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 shopDetailResult, err := api.JdShop2API.ShopDetail(utils.Str2Int(vendorStoreID)); err == nil {
|
||||||
if store.Licence != "" {
|
if store.Licence != "" {
|
||||||
data, _, _ := jxutils.DownloadFileByURL(store.Licence)
|
data, _, _ := jxutils.DownloadFileByURL(store.Licence)
|
||||||
|
|||||||
Reference in New Issue
Block a user