This commit is contained in:
邹宗楠
2023-10-18 09:06:09 +08:00
parent 00aef48924
commit 9a62ed411e

View File

@@ -49,8 +49,9 @@ func CopyOnStoreSkuToOther(ctx *jxcontext.Context, fromVendorStoreId, toStoreId
//}
case 2:
// 同步分类
fromCategoryList, _ := fromApi.RetailCatList(utils.Int2Str(fromVendorStoreId))
fromCategoryList, err := fromApi.RetailCatList(utils.Int2Str(fromVendorStoreId))
globals.SugarLogger.Debugf("fromCategoryList ============ %d", len(fromCategoryList))
globals.SugarLogger.Debugf("err ============ %v", err)
for _, v := range fromCategoryList {
categoryErr := toApi.RetailCatUpdate(toStore.VendorStoreID, v.Name, &mtwmapi.Param4UpdateCat{
CategoryCode: v.Code,