1
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user