This commit is contained in:
邹宗楠
2023-08-04 16:35:30 +08:00
parent a9b60adfb1
commit 381b2208bf
2 changed files with 7 additions and 5 deletions

View File

@@ -674,9 +674,9 @@ var beijin = []int{
//669097, //669097,
//669096, //669096,
//669095, //669095,
669094, //669094,
669093, //669093,
669092, //669092,
669091, 669091,
669087, 669087,
669086, 669086,
@@ -910,7 +910,6 @@ func syncStoreSkuTao() {
_, err = cms.CurVendorSync.SyncStoresSkus2(jxcontext.AdminCtx, nil, 0, db, []int{model.VendorIDTaoVegetable}, beijin[syncLen:syncLen+5], false, nil, nil, syncFlag, true, true) _, err = cms.CurVendorSync.SyncStoresSkus2(jxcontext.AdminCtx, nil, 0, db, []int{model.VendorIDTaoVegetable}, beijin[syncLen:syncLen+5], false, nil, nil, syncFlag, true, true)
errList.AddErr(err) errList.AddErr(err)
case 1: case 1:
errList.AddErr(err)
SaveImportantTaskID(TaskNameSyncStoreSku, SpecialTaskID) SaveImportantTaskID(TaskNameSyncStoreSku, SpecialTaskID)
} }
err = errList.GetErrListAsOne() err = errList.GetErrListAsOne()

View File

@@ -253,7 +253,10 @@ func UpdateTaoVegetable(api *tao_vegetable.API, storeSkuList []*dao.StoreSkuSync
updateSku.PurchaseQuantity = utils.Int64ToPointer(int64(v.MinOrderCount)) // 起购单位 updateSku.PurchaseQuantity = utils.Int64ToPointer(int64(v.MinOrderCount)) // 起购单位
} }
// 修改暂时不修改图片,保持效率 // 修改暂时不修改图片,保持效率
//updateSku.SkuPicUrls = uploadImg(api, []string{v.Img, v.Img2, v.Img3, v.Img4, v.Img5, v.DescImg}) updateSku.SkuPicUrls = uploadImg(api, []string{v.Img, v.Img2, v.Img3, v.Img4, v.Img5, v.DescImg})
if updateSku.SkuPicUrls == nil {
continue
}
updateSkuList = append(updateSkuList, updateSku) updateSkuList = append(updateSkuList, updateSku)
} }