银豹创建商品测试

This commit is contained in:
苏尹岚
2020-03-20 17:32:56 +08:00
parent 524902962f
commit a61ce6e583
2 changed files with 4 additions and 9 deletions

View File

@@ -119,10 +119,6 @@ var (
// }
func (v *VendorSync) GetStoreHandler(vendorID int) partner.IPurchasePlatformHandler {
fmt.Println(partner.GetPurchasePlatformFromVendorID(0))
fmt.Println(partner.GetPurchasePlatformFromVendorID(1))
fmt.Println(partner.GetPurchasePlatformFromVendorID(4))
return partner.GetPurchasePlatformFromVendorID(vendorID)
}

View File

@@ -5,7 +5,6 @@ import (
"git.rosy.net.cn/jx-callback/business/model"
"git.rosy.net.cn/jx-callback/business/partner"
"git.rosy.net.cn/jx-callback/business/partner/putils"
"git.rosy.net.cn/jx-callback/globals/api"
)
var (
@@ -18,10 +17,10 @@ type PurchaseHandler struct {
}
func init() {
if api.YinBaoAPI != nil {
CurPurchaseHandler = New()
partner.RegisterPurchasePlatform(CurPurchaseHandler)
}
// if api.YinBaoAPI != nil {
CurPurchaseHandler = New()
partner.RegisterPurchasePlatform(CurPurchaseHandler)
// }
}
func New() (obj *PurchaseHandler) {