1
This commit is contained in:
@@ -1858,8 +1858,10 @@ func UpdateStoreVendorMap(ctx *jxcontext.Context, db *dao.DaoDB, storeID, vendor
|
||||
syncStatus |= model.SyncFlagStoreName
|
||||
address = payload["address"].(string)
|
||||
// 这个字段暂存美团门店地址
|
||||
storeMap.YbStorePrefix = address
|
||||
dao.UpdateEntity(db, storeMap, "YbStorePrefix")
|
||||
if storeMap.VendorID == model.VendorIDMTWM {
|
||||
storeMap.YbStorePrefix = address
|
||||
dao.UpdateEntity(db, storeMap, "YbStorePrefix")
|
||||
}
|
||||
}
|
||||
|
||||
if err == nil {
|
||||
|
||||
@@ -331,14 +331,11 @@ func (p *PurchaseHandler) createOrUpdateStoreSkus(ctx *jxcontext.Context, storeI
|
||||
param.Name = checkNameLenght(param.Name)
|
||||
|
||||
// 暂时只考虑修改白底图,提高效率.其余图片不做修改
|
||||
img, descImg, whiteImg, err := GetTiktokImgList(api, utils.Int2Str(storeSku.StoreID), storeSku.SkuID, storeSku.DescImg, storeSku.Img, []string{storeSku.Img2, storeSku.Img3, storeSku.Img4, storeSku.Img5})
|
||||
param.Pic, param.Description, param.WhiteBackGroundPicUrl, err = GetTiktokImgList(api, utils.Int2Str(storeSku.StoreID), storeSku.SkuID, storeSku.DescImg, storeSku.Img, []string{storeSku.Img2, storeSku.Img3, storeSku.Img4, storeSku.Img5})
|
||||
if err != nil {
|
||||
failedList = putils.GetErrMsg2FailedSingleList(storeSkuList, err, storeID, model.VendorChineseNames[model.VendorIDDD], syncType)
|
||||
continue
|
||||
}
|
||||
param.Pic = img
|
||||
param.Description = descImg
|
||||
param.WhiteBackGroundPicUrl = whiteImg
|
||||
param.WeightUnit = tiktokShop.WeightUint_G
|
||||
|
||||
// 部分商品没有所属的分类,直接跳过!
|
||||
@@ -407,6 +404,7 @@ func (p *PurchaseHandler) createOrUpdateStoreSkus(ctx *jxcontext.Context, storeI
|
||||
// 修改商品
|
||||
param.ProductId = mainIdInt
|
||||
param.MainProductId = mainIdInt
|
||||
param.FreightId, _ = api.GetStoreBindTemp(utils.Str2Int64(vendorStoreID))
|
||||
param.SpecPrices = GetSpecPrices(param.Specs, vendorStoreID, param.MainProductId, storeSku)
|
||||
if err := api.EditStoreCommodity(param); err != nil && !strings.Contains(err.Error(), "您上传的商品主图存在重复") {
|
||||
failedList = putils.GetErrMsg2FailedSingleList(storeSkuList, err, storeID, model.VendorChineseNames[model.VendorIDDD], syncType)
|
||||
|
||||
Reference in New Issue
Block a user