jdshop2
This commit is contained in:
@@ -46,6 +46,12 @@ func (a *APIManager) GetAPI(vendorID int, appOrgCode string) (pfAPI interface{})
|
||||
pfAPI = api.MtwmAPI
|
||||
case model.VendorIDEBAI:
|
||||
pfAPI = api.EbaiAPI
|
||||
case model.VendorIDJDShop:
|
||||
if appOrgCode == "1" {
|
||||
pfAPI = api.JdShopAPI
|
||||
} else {
|
||||
pfAPI = api.JdShop2API
|
||||
}
|
||||
}
|
||||
return pfAPI
|
||||
}
|
||||
@@ -59,6 +65,8 @@ func (a *APIManager) GetAppOrgCodeList(vendorID int) (appOrgCodeList []string) {
|
||||
appOrgCodeList = []string{api.MtwmAPI.GetAppID()}
|
||||
case model.VendorIDEBAI:
|
||||
appOrgCodeList = []string{api.EbaiAPI.GetSource()}
|
||||
case model.VendorIDJDShop:
|
||||
appOrgCodeList = []string{"1", "2"}
|
||||
}
|
||||
return appOrgCodeList
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user