aa
This commit is contained in:
@@ -61,11 +61,7 @@ func (a *APIManager) GetAPI(vendorID int, appOrgCode string) (pfAPI interface{})
|
||||
case model.VendorIDEBAI:
|
||||
pfAPI = api.EbaiAPI
|
||||
case model.VendorIDJDShop:
|
||||
if appOrgCode == "1" {
|
||||
pfAPI = api.JdShopAPI
|
||||
} else {
|
||||
pfAPI = api.JdShop2API
|
||||
}
|
||||
pfAPI = api.JdShopAPI
|
||||
}
|
||||
return pfAPI
|
||||
}
|
||||
@@ -83,7 +79,7 @@ func (a *APIManager) GetAppOrgCodeList(vendorID int) (appOrgCodeList []string) {
|
||||
case model.VendorIDEBAI:
|
||||
appOrgCodeList = []string{api.EbaiAPI.GetSource()}
|
||||
case model.VendorIDJDShop:
|
||||
appOrgCodeList = []string{"1", "2"}
|
||||
appOrgCodeList = []string{"2"}
|
||||
}
|
||||
return appOrgCodeList
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user