checkRemoteCatExist中,只根据code来判断
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user