银豹创建商品测试
This commit is contained in:
@@ -119,6 +119,10 @@ var (
|
|||||||
// }
|
// }
|
||||||
|
|
||||||
func (v *VendorSync) GetStoreHandler(vendorID int) partner.IPurchasePlatformHandler {
|
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)
|
return partner.GetPurchasePlatformFromVendorID(vendorID)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,6 @@
|
|||||||
package yb
|
package yb
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
"sync"
|
|
||||||
|
|
||||||
"git.rosy.net.cn/jx-callback/business/jxutils/jxcontext"
|
"git.rosy.net.cn/jx-callback/business/jxutils/jxcontext"
|
||||||
"git.rosy.net.cn/jx-callback/business/model"
|
"git.rosy.net.cn/jx-callback/business/model"
|
||||||
"git.rosy.net.cn/jx-callback/business/partner"
|
"git.rosy.net.cn/jx-callback/business/partner"
|
||||||
@@ -18,17 +15,12 @@ var (
|
|||||||
type PurchaseHandler struct {
|
type PurchaseHandler struct {
|
||||||
partner.BasePurchasePlatform
|
partner.BasePurchasePlatform
|
||||||
putils.DefSingleStorePlatform
|
putils.DefSingleStorePlatform
|
||||||
|
|
||||||
locker sync.RWMutex
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
if api.YinBaoAPI != nil {
|
if api.YinBaoAPI != nil {
|
||||||
fmt.Println("test2")
|
|
||||||
CurPurchaseHandler = New()
|
CurPurchaseHandler = New()
|
||||||
partner.RegisterPurchasePlatform(CurPurchaseHandler)
|
partner.RegisterPurchasePlatform(CurPurchaseHandler)
|
||||||
} else {
|
|
||||||
fmt.Println("test1")
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user