!删除IsUseThingMap
This commit is contained in:
@@ -169,9 +169,6 @@ func (v *VendorSync) GetSingleStoreHandler(vendorID int) partner.ISingleStoreHan
|
||||
// }
|
||||
|
||||
func (v *VendorSync) SyncCategory(ctx *jxcontext.Context, db *dao.DaoDB, categoryID int, isAsync bool, userName string) (hint string, err error) {
|
||||
// if !globals.IsUseThingMap {
|
||||
// return v.oldSyncCategory(ctx, db, categoryID, isAsync, userName)
|
||||
// }
|
||||
return SyncCategories(ctx, nil, nil, nil, []int{categoryID}, isAsync)
|
||||
}
|
||||
|
||||
@@ -205,9 +202,6 @@ func (v *VendorSync) SyncCategory(ctx *jxcontext.Context, db *dao.DaoDB, categor
|
||||
// }
|
||||
|
||||
func (v *VendorSync) SyncReorderCategories(ctx *jxcontext.Context, db *dao.DaoDB, categoryID int, isAsync bool, userName string) (hint string, err error) {
|
||||
// if !globals.IsUseThingMap {
|
||||
// return v.oldSyncReorderCategories(ctx, db, categoryID, isAsync, userName)
|
||||
// }
|
||||
return SyncReorderCategories(ctx, categoryID, isAsync)
|
||||
}
|
||||
|
||||
@@ -302,9 +296,6 @@ func (v *VendorSync) SyncSku(ctx *jxcontext.Context, db *dao.DaoDB, nameID, skuI
|
||||
}
|
||||
|
||||
func (v *VendorSync) SyncSkus(ctx *jxcontext.Context, db *dao.DaoDB, nameIDs []int, skuIDs []int, isAsync, isContinueWhenError bool, userName string) (hint string, err error) {
|
||||
// if !globals.IsUseThingMap {
|
||||
// return v.oldSyncSkus(ctx, db, nameIDs, skuIDs, isAsync, isContinueWhenError, userName)
|
||||
// }
|
||||
return SyncSkus(ctx, nil, nil, nil, nameIDs, skuIDs, isAsync)
|
||||
}
|
||||
|
||||
@@ -795,9 +786,6 @@ func isSyncError(err error) bool {
|
||||
}
|
||||
|
||||
func (v *VendorSync) SyncSkuNames(ctx *jxcontext.Context, nameIDs []int, isForce, isAsync, isContinueWhenError bool) (hint string, err error) {
|
||||
if !globals.IsUseThingMap {
|
||||
return v.oldSyncSkuNames(ctx, nameIDs, isForce, isAsync, isContinueWhenError)
|
||||
}
|
||||
return SyncSkus(ctx, nil, nil, nil, nameIDs, nil, isAsync)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user