PruneMissingStoreSkus对于美团分类也处理(之前是忽略了的)

This commit is contained in:
gazebo
2019-10-19 20:08:19 +08:00
parent 3fa818d5ab
commit 0e6a655f16

View File

@@ -618,7 +618,6 @@ func PruneMissingStoreSkus(ctx *jxcontext.Context, parentTask tasksch.ITask, ven
}
sku2Delete = nil
case 2:
if vendorID != model.VendorIDMTWM {
localCatList, err := dao.GetStoreCategories(db, vendorID, storeID, 0, false)
if err != nil {
return nil, err
@@ -634,7 +633,6 @@ func PruneMissingStoreSkus(ctx *jxcontext.Context, parentTask tasksch.ITask, ven
if err = err2; err == nil {
cat2Delete = checkRemoteCatExist(localCatMap, remoteCatList)
}
}
case 3:
if len(cat2Delete) > 0 {
for i := 0; i < 2; i++ {