银豹创建商品测试
This commit is contained in:
@@ -119,6 +119,10 @@ 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)
|
||||
}
|
||||
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
package yb
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"sync"
|
||||
|
||||
"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"
|
||||
@@ -18,17 +15,12 @@ var (
|
||||
type PurchaseHandler struct {
|
||||
partner.BasePurchasePlatform
|
||||
putils.DefSingleStorePlatform
|
||||
|
||||
locker sync.RWMutex
|
||||
}
|
||||
|
||||
func init() {
|
||||
if api.YinBaoAPI != nil {
|
||||
fmt.Println("test2")
|
||||
CurPurchaseHandler = New()
|
||||
partner.RegisterPurchasePlatform(CurPurchaseHandler)
|
||||
} else {
|
||||
fmt.Println("test1")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user