aa
This commit is contained in:
@@ -47,12 +47,10 @@ func (a *APIManager) GetAPI(vendorID int, appOrgCode string) (pfAPI interface{})
|
||||
api.JdAPI = jdapi.New(code.Token, code.AppKey, code.AppSecret)
|
||||
pfAPI = api.JdAPI
|
||||
if configs, err := dao.QueryConfigs(dao.GetDB(), "jdStorePageCookie", model.ConfigTypeCookie, ""); err == nil {
|
||||
JdStorePageCookie := configs[0].Value
|
||||
api.JdAPI.SetJdCookie(JdStorePageCookie)
|
||||
api.JdAPI.SetJdCookie(configs[0].Value)
|
||||
}
|
||||
if configs, err := dao.QueryConfigs(dao.GetDB(), "jdStorePageEarning", model.ConfigTypeCookie, ""); err == nil {
|
||||
jdStorePageEarning := configs[0].Value
|
||||
api.JdAPI.SetCookie("user", jdStorePageEarning)
|
||||
api.JdAPI.SetCookie("user", configs[0].Value)
|
||||
}
|
||||
}
|
||||
case model.VendorIDMTWM:
|
||||
|
||||
Reference in New Issue
Block a user