checkRemoteCatExist中,只根据code来判断

This commit is contained in:
gazebo
2019-10-27 23:00:51 +08:00
parent e0395feb1d
commit 8154d131f7

View File

@@ -576,9 +576,9 @@ func syncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, isFull bo
func checkRemoteCatExist(outRemoteCatMap map[string]int, localCatMap map[string]*dao.SkuStoreCatInfo, remoteCatList []*partner.BareCategoryInfo) (cat2Delete []*partner.BareCategoryInfo) {
for _, v := range remoteCatList {
localCat := localCatMap[v.VendorCatID]
if localCat == nil {
localCat = localCatMap[v.Name]
}
// if localCat == nil {
// localCat = localCatMap[v.Name]
// }
if localCat == nil || v.Level != int(localCat.Level) {
cat2Delete = append(cat2Delete, v)
} else {