- 不注册京西到PurchaseHandlers

This commit is contained in:
gazebo
2019-09-04 17:54:35 +08:00
parent 5105a00075
commit f50fdf2bab
2 changed files with 4 additions and 5 deletions

View File

@@ -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
} }

View File

@@ -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)
} }
} }