果园应该不存在jd2API,尝试解决果园炸了
This commit is contained in:
@@ -240,6 +240,9 @@ func Init() {
|
|||||||
if configs, err := dao.QueryConfigs(dao.GetDB(), "jd2StorePageCookie", model.ConfigTypeCookie, ""); err == nil {
|
if configs, err := dao.QueryConfigs(dao.GetDB(), "jd2StorePageCookie", model.ConfigTypeCookie, ""); err == nil {
|
||||||
jd2StorePageCookie = configs[0].Value
|
jd2StorePageCookie = configs[0].Value
|
||||||
}
|
}
|
||||||
|
if globals.Jd2OrgCode != "" {
|
||||||
|
api.Jd2API.SetJdCookie(jd2StorePageCookie)
|
||||||
|
}
|
||||||
api.EbaiAPI.SetCookie("PASSPORT_DELIMONT_TOKEN", ebaiStorePageCookieExdTOKEN)
|
api.EbaiAPI.SetCookie("PASSPORT_DELIMONT_TOKEN", ebaiStorePageCookieExdTOKEN)
|
||||||
api.EbaiAPI.SetCookie("WMUSS", ebaiStorePageCookieWMUSS)
|
api.EbaiAPI.SetCookie("WMUSS", ebaiStorePageCookieWMUSS)
|
||||||
api.EbaiAPI.SetCookie("WMSTOKEN", ebaiStorePageCookieWMSTOKEN)
|
api.EbaiAPI.SetCookie("WMSTOKEN", ebaiStorePageCookieWMSTOKEN)
|
||||||
@@ -248,7 +251,6 @@ func Init() {
|
|||||||
api.Ebai2API.SetCookie("WMSTOKEN", ebaiStorePageCookieWMSTOKEN2)
|
api.Ebai2API.SetCookie("WMSTOKEN", ebaiStorePageCookieWMSTOKEN2)
|
||||||
api.MtwmAPI.SetCookieWithStr(mtwmCookieStr)
|
api.MtwmAPI.SetCookieWithStr(mtwmCookieStr)
|
||||||
api.MtpsAPI.SetCookie("token", mtpsStoreToken)
|
api.MtpsAPI.SetCookie("token", mtpsStoreToken)
|
||||||
api.Jd2API.SetJdCookie(jd2StorePageCookie)
|
|
||||||
api.JdAPI.SetJdCookie(JdStorePageCookie)
|
api.JdAPI.SetJdCookie(JdStorePageCookie)
|
||||||
api.JdPageAPI.SetCookie(jdapi.AccessStorePageCookieName, JdStorePageCookie)
|
api.JdPageAPI.SetCookie(jdapi.AccessStorePageCookieName, JdStorePageCookie)
|
||||||
api.JdPageAPI.SetCookie(jdapi.AccessStorePageCookieName2, JdStorePageCookie)
|
api.JdPageAPI.SetCookie(jdapi.AccessStorePageCookieName2, JdStorePageCookie)
|
||||||
|
|||||||
Reference in New Issue
Block a user