Merge remote-tracking branch 'origin/mark' into yonghui
This commit is contained in:
@@ -2,6 +2,7 @@ package apimanager
|
||||
|
||||
import (
|
||||
"git.rosy.net.cn/jx-callback/business/jxutils"
|
||||
"git.rosy.net.cn/jx-callback/business/jxutils/jxcontext"
|
||||
"git.rosy.net.cn/jx-callback/business/model"
|
||||
"git.rosy.net.cn/jx-callback/business/partner"
|
||||
"git.rosy.net.cn/jx-callback/globals"
|
||||
@@ -69,3 +70,11 @@ func (a *APIManager) GetVendorOrgCodeList(vendorIDs []int, appOrgCodes []string)
|
||||
}
|
||||
return vendorOrgCodeList
|
||||
}
|
||||
|
||||
func GetVendorOrgCodeMap(ctx *jxcontext.Context) (vendorOrgCodeMap map[int][]string) {
|
||||
vendorOrgCodeMap = make(map[int][]string)
|
||||
for _, vendorID := range partner.GetPurchasePlatformVendorIDs() {
|
||||
vendorOrgCodeMap[vendorID] = CurAPIManager.GetAppOrgCodeList(vendorID)
|
||||
}
|
||||
return vendorOrgCodeMap
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user