This commit is contained in:
邹宗楠
2023-04-01 00:08:03 +08:00
parent 7f4596a041
commit 87620e87b8

View File

@@ -1181,7 +1181,6 @@ func getCategoryByImg(img ...string) string {
// 根据平台返回的分类id,获取本地绑定的映射分类id
func getJDCategoryLoadingLocalCategoryReflex(jdCategoryId, jdsCategoryID, ebaiCategoryID, mtwmCategoryID string, jxCategoryId int) (string, string, string, int) {
globals.SugarLogger.Debugf("==getJDCategoryLoadingLocalCategoryReflex=== jxCategoryId=== %d", jxCategoryId)
cats, err := dao.GetCategoriesByName(dao.GetDB(), "", jdCategoryId)
if len(cats) == 0 || err != nil {
return jdsCategoryID, ebaiCategoryID, mtwmCategoryID, 0
@@ -1199,7 +1198,6 @@ func getJDCategoryLoadingLocalCategoryReflex(jdCategoryId, jdsCategoryID, ebaiCa
jxCategoryId = cats[0].ID
}
}
globals.SugarLogger.Debugf("==getJDCategoryLoadingLocalCategoryReflex=== jxCategoryId===222 %d", jxCategoryId)
return jdsCategoryID, ebaiCategoryID, mtwmCategoryID, jxCategoryId
}
@@ -2580,7 +2578,6 @@ func CreateUpcSkuByExcelBin(ctx *jxcontext.Context, reader io.Reader, categoryID
payload["ebaiCategoryID"] = d.VendorCategoryID
}
}
globals.SugarLogger.Debugf("payload := %s", utils.Format4Output(payload, false))
updateOrCreateSkuVendorCategoryMap(db, ctx, sku.ID, payload, nil, false)
}
if err != nil {