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) {
|
func checkRemoteCatExist(outRemoteCatMap map[string]int, localCatMap map[string]*dao.SkuStoreCatInfo, remoteCatList []*partner.BareCategoryInfo) (cat2Delete []*partner.BareCategoryInfo) {
|
||||||
for _, v := range remoteCatList {
|
for _, v := range remoteCatList {
|
||||||
localCat := localCatMap[v.VendorCatID]
|
localCat := localCatMap[v.VendorCatID]
|
||||||
if localCat == nil {
|
// if localCat == nil {
|
||||||
localCat = localCatMap[v.Name]
|
// localCat = localCatMap[v.Name]
|
||||||
}
|
// }
|
||||||
if localCat == nil || v.Level != int(localCat.Level) {
|
if localCat == nil || v.Level != int(localCat.Level) {
|
||||||
cat2Delete = append(cat2Delete, v)
|
cat2Delete = append(cat2Delete, v)
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user