- 修复GetSingleStoreVendorIDs的bug

This commit is contained in:
gazebo
2019-08-21 11:53:41 +08:00
parent 2ca7e5accc
commit c0339d245a
4 changed files with 9 additions and 12 deletions

View File

@@ -178,6 +178,7 @@ type IMultipleStoresHandler interface {
type ISingleStoreHandler interface {
IPurchasePlatformHandler
ISingleStoreStoreSkuHandler
// SyncStoreCategory(ctx *jxcontext.Context, parentTask tasksch.ITask, storeID int, isAsync bool) (hint string, err error)
// RefreshStoresAllSkusID(ctx *jxcontext.Context, parentTask tasksch.ITask, isAsync bool, storeIDs []int) (hint string, err error)
@@ -234,7 +235,7 @@ func GetMultiStoreVendorIDs() (vendorIDs []int) {
func GetSingleStoreVendorIDs() (vendorIDs []int) {
for k, v := range PurchasePlatformHandlers {
if _, ok := v.(ISingleStoreHandler); !ok {
if _, ok := v.(ISingleStoreHandler); ok {
vendorIDs = append(vendorIDs, k)
}
}