- 不注册京西到PurchaseHandlers
This commit is contained in:
@@ -225,11 +225,9 @@ func GetPurchasePlatformFromVendorID(vendorID int) IPurchasePlatformHandler {
|
|||||||
return PurchasePlatformHandlers[vendorID]
|
return PurchasePlatformHandlers[vendorID]
|
||||||
}
|
}
|
||||||
|
|
||||||
func GetExternalPurchasePlatformVendorIDs() (vendorIDs []int) {
|
func GetPurchasePlatformVendorIDs() (vendorIDs []int) {
|
||||||
for k := range PurchasePlatformHandlers {
|
for k := range PurchasePlatformHandlers {
|
||||||
if k != model.VendorIDJX {
|
vendorIDs = append(vendorIDs, k)
|
||||||
vendorIDs = append(vendorIDs, k)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return vendorIDs
|
return vendorIDs
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,7 +19,8 @@ func init() {
|
|||||||
globals.SugarLogger.Debug("init jx")
|
globals.SugarLogger.Debug("init jx")
|
||||||
if true {
|
if true {
|
||||||
CurPurchaseHandler = new(PurchaseHandler)
|
CurPurchaseHandler = new(PurchaseHandler)
|
||||||
partner.RegisterPurchasePlatform(CurPurchaseHandler)
|
// 不能注册京西
|
||||||
|
// partner.RegisterPurchasePlatform(CurPurchaseHandler)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user