This commit is contained in:
苏尹岚
2021-04-06 11:18:42 +08:00
parent d5a5a259e7
commit 8c5d4abe7e
4 changed files with 18 additions and 8 deletions

View File

@@ -47,6 +47,14 @@ func getAPI(appOrgCode string) (apiObj *jdshopapi.API) {
return apiObj
}
func GetAPI(appOrgCode string) (apiObj *jdshopapi.API) {
apiObj = partner.CurAPIManager.GetAPI(model.VendorIDJDShop, appOrgCode).(*jdshopapi.API)
if configs, err := dao.QueryConfigs(dao.GetDB(), "jdsCookie2", model.ConfigTypeCookie, ""); err == nil {
apiObj.SetCookieWithStr(configs[0].Value)
}
return apiObj
}
func (p *PurchaseHandler) GetVendorID() int {
return model.VendorIDJDShop
}