This commit is contained in:
苏尹岚
2020-11-26 09:47:34 +08:00
parent b5575b363e
commit 49a636922d

View File

@@ -137,7 +137,7 @@ var (
feiePageCookie string feiePageCookie string
jdStorePageEarning string jdStorePageEarning string
jdsCookie string jdsCookie string
jdsCookie2 string // jdsCookie2 string
) )
func GetImportantTaskID(taskName string) string { func GetImportantTaskID(taskName string) string {
@@ -340,10 +340,10 @@ func Init() {
jdsCookie = configs[0].Value jdsCookie = configs[0].Value
api.JdShopAPI.SetCookieWithStr(jdsCookie) api.JdShopAPI.SetCookieWithStr(jdsCookie)
} }
if configs, err := dao.QueryConfigs(dao.GetDB(), "jdsCookie2", model.ConfigTypeCookie, ""); err == nil { // if configs, err := dao.QueryConfigs(dao.GetDB(), "jdsCookie2", model.ConfigTypeCookie, ""); err == nil {
jdsCookie2 = configs[0].Value // jdsCookie2 = configs[0].Value
api.JdShop2API.SetCookieWithStr(jdsCookie2) // api.JdShop2API.SetCookieWithStr(jdsCookie2)
} // }
if configs, err := dao.QueryConfigs(dao.GetDB(), "yinbaoCookie", model.ConfigTypeCookie, ""); err == nil { if configs, err := dao.QueryConfigs(dao.GetDB(), "yinbaoCookie", model.ConfigTypeCookie, ""); err == nil {
yinbaoCookie := configs[0].Value yinbaoCookie := configs[0].Value
api.YinBaoAPI.SetCookie(".POSPALAUTH30220", yinbaoCookie) api.YinBaoAPI.SetCookie(".POSPALAUTH30220", yinbaoCookie)