- 不注册京西到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]
}
func GetExternalPurchasePlatformVendorIDs() (vendorIDs []int) {
func GetPurchasePlatformVendorIDs() (vendorIDs []int) {
for k := range PurchasePlatformHandlers {
if k != model.VendorIDJX {
vendorIDs = append(vendorIDs, k)
}
vendorIDs = append(vendorIDs, k)
}
return vendorIDs
}

View File

@@ -19,7 +19,8 @@ func init() {
globals.SugarLogger.Debug("init jx")
if true {
CurPurchaseHandler = new(PurchaseHandler)
partner.RegisterPurchasePlatform(CurPurchaseHandler)
// 不能注册京西
// partner.RegisterPurchasePlatform(CurPurchaseHandler)
}
}