From d32a8cd1983f605bf984876dd24b531f66b8ede1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Tue, 8 Aug 2023 10:45:58 +0800 Subject: [PATCH] 1 --- business/jxstore/cms/sync_store_sku.go | 9 --------- business/partner/purchase/tao_vegetable/store_sku2.go | 2 ++ 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/business/jxstore/cms/sync_store_sku.go b/business/jxstore/cms/sync_store_sku.go index ed824e347..7e3f38376 100644 --- a/business/jxstore/cms/sync_store_sku.go +++ b/business/jxstore/cms/sync_store_sku.go @@ -711,15 +711,6 @@ func syncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, causeFlag } } - globals.SugarLogger.Debugf("====================%s", utils.Format4Output(deleteList, false)) - globals.SugarLogger.Debugf("====================%s", utils.Format4Output(updateList, false)) - globals.SugarLogger.Debugf("====================%s", utils.Format4Output(stockList, false)) - globals.SugarLogger.Debugf("====================%s", utils.Format4Output(createList, false)) - globals.SugarLogger.Debugf("====================%s", utils.Format4Output(onlineList, false)) - globals.SugarLogger.Debugf("====================%s", utils.Format4Output(offlineList, false)) - globals.SugarLogger.Debugf("====================%s", utils.Format4Output(priceList, false)) - globals.SugarLogger.Debugf("====================%s", utils.Format4Output(updateItems, false)) - globals.SugarLogger.Debugf("====================%s", utils.Format4Output(reorderSkuMap, false)) task := tasksch.NewParallelTask("syncStoreSkuNew", tasksch.NewParallelConfig().SetParallelCount(1).SetIsContinueWhenError(isContinueWhenError2), ctx, func(task *tasksch.ParallelTask, batchItemList []interface{}, params ...interface{}) (retVal interface{}, err error) { step := batchItemList[0].(int) diff --git a/business/partner/purchase/tao_vegetable/store_sku2.go b/business/partner/purchase/tao_vegetable/store_sku2.go index 455720840..4be767488 100644 --- a/business/partner/purchase/tao_vegetable/store_sku2.go +++ b/business/partner/purchase/tao_vegetable/store_sku2.go @@ -592,6 +592,8 @@ func (p *PurchaseHandler) UpdateStoreSkusPrice(ctx *jxcontext.Context, vendorOrg CleanSkuMemberPrice: utils.Int64ToPointer(model.YES), SubTitle: utils.String2Pointer("小时达"), } + // 临时更新上传图片错误的,或图片上传失败的商品 + updateSku.SkuPicUrls = uploadImg(api, v.SkuID, model.VendorIDTaoVegetable, nil) updateSkuList = append(updateSkuList, updateSku) } param.ParamList = &updateSkuList