- 平台多账号相关

This commit is contained in:
gazebo
2019-08-27 18:45:58 +08:00
parent c8926056fb
commit 3f69f94cbb
5 changed files with 190 additions and 79 deletions

View File

@@ -1,6 +1,7 @@
package jd
import (
"git.rosy.net.cn/baseapi/platformapi/jdapi"
"git.rosy.net.cn/baseapi/utils"
"git.rosy.net.cn/jx-callback/business/jxutils/jxcontext"
"git.rosy.net.cn/jx-callback/business/model"
@@ -8,14 +9,14 @@ import (
"git.rosy.net.cn/jx-callback/globals/api"
)
var (
curPurchaseHandler *PurchaseHandler
)
type PurchaseHandler struct {
partner.BasePurchasePlatform
}
var (
curPurchaseHandler *PurchaseHandler
)
func init() {
if api.JdAPI != nil {
curPurchaseHandler = new(PurchaseHandler)
@@ -23,6 +24,10 @@ func init() {
}
}
func getAPI(orgCode string) (apiObj *jdapi.API) {
return partner.CurAPIManager.GetAPI(model.VendorIDJD, orgCode).(*jdapi.API)
}
func (c *PurchaseHandler) GetVendorID() int {
return model.VendorIDJD
}