This commit is contained in:
苏尹岚
2020-11-18 14:57:45 +08:00
parent 694bc68ef9
commit 67a9c517f2
6 changed files with 74 additions and 59 deletions

View File

@@ -339,6 +339,10 @@ func Init() {
jdsCookie = configs[0].Value
api.JdShopAPI.SetCookieWithStr(jdsCookie)
}
if configs, err := dao.QueryConfigs(dao.GetDB(), "jdsCookie2", model.ConfigTypeCookie, ""); err == nil {
jdsCookie = configs[0].Value
api.JdShop2API.SetCookieWithStr(jdsCookie)
}
if configs, err := dao.QueryConfigs(dao.GetDB(), "yinbaoCookie", model.ConfigTypeCookie, ""); err == nil {
yinbaoCookie := configs[0].Value
api.YinBaoAPI.SetCookie(".POSPALAUTH30220", yinbaoCookie)