1
This commit is contained in:
@@ -200,7 +200,7 @@ func CopyMtToMT(ctx *jxcontext.Context, fromStore, toStore *dao.StoreDetail, isA
|
||||
} else {
|
||||
toApi = partner.CurAPIManager.GetAPI(model.VendorIDMTWM, toStore.VendorOrgCode).(*mtwmapi.API)
|
||||
}
|
||||
|
||||
globals.SugarLogger.Debugf("--------------1")
|
||||
taskName := fmt.Sprintf("将美团平台门店[%s],分类和商品复制到[%s]", fromStore.VendorStoreID, toStore.VendorStoreID)
|
||||
config := tasksch.NewParallelConfig().SetParallelCount(1).SetIsContinueWhenError(false)
|
||||
work := func(task *tasksch.ParallelTask, batchItemList []interface{}, params ...interface{}) (retVal interface{}, err error) {
|
||||
@@ -209,6 +209,8 @@ 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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user