1
This commit is contained in:
@@ -209,8 +209,6 @@ func CopyMtToMT(ctx *jxcontext.Context, fromStore, toStore *dao.StoreDetail, isA
|
||||
case 1:
|
||||
// 同步分类
|
||||
fromCategoryList, err := fromApi.RetailCatList(fromStore.VendorStoreID)
|
||||
globals.SugarLogger.Debugf("--------------1,err = %v", err)
|
||||
globals.SugarLogger.Debugf("--------------1,fromCategoryList = %s", utils.Format4Output(fromCategoryList, false))
|
||||
if len(fromCategoryList) == model.NO {
|
||||
return nil, err
|
||||
}
|
||||
@@ -227,7 +225,7 @@ func CopyMtToMT(ctx *jxcontext.Context, fromStore, toStore *dao.StoreDetail, isA
|
||||
if categoryErr != nil {
|
||||
globals.SugarLogger.Debugf("err := RetailCatUpdate : %v", categoryErr)
|
||||
}
|
||||
if v.Children != nil && len(v.Children) != 0 {
|
||||
if v.Children != nil {
|
||||
for _, c := range v.Children {
|
||||
if err3 := toApi.RetailCatUpdate(toStore.VendorStoreID, v.Name, &mtwmapi.Param4UpdateCat{
|
||||
CategoryNameOrigin: v.Name,
|
||||
|
||||
Reference in New Issue
Block a user