添加美团个各个平台相互复制

This commit is contained in:
邹宗楠
2025-03-17 13:46:20 +08:00
parent ea73635848
commit 8306b04823
7 changed files with 832 additions and 38 deletions

View File

@@ -561,7 +561,7 @@ func getTiktokBrandId(api *tiktokShop.API, db *dao.DaoDB, upc, upcBrandName, upc
dao.UpdateSkuNameTiktokBrandName(db, upc, upcBrandName, utils.Int64ToStr(standardBrandId))
return standardBrandId, nil
} else if upc != "" && upcBrandName == "" && upcTiktokBrandId == "" {
brandName, err := getBrandByBrandName(upc)
brandName, err := GetBrandByBrandName(upc)
if err != nil {
return 0, err
}
@@ -584,7 +584,7 @@ func getTiktokBrandId(api *tiktokShop.API, db *dao.DaoDB, upc, upcBrandName, upc
return 0, errors.New("getTiktokBrandId 获取抖音品牌id异常")
}
func getBrandByBrandName(upcCode string) (string, error) {
func GetBrandByBrandName(upcCode string) (string, error) {
vendorOrgCode := ""
if beego.BConfig.RunMode == model.ServerTypeFruits {
vendorOrgCode = jdapi.JdVendorOrgCodeFruit
@@ -1010,6 +1010,7 @@ func GetTiktokImgList(api *tiktokShop.API, storeId string, skuId int, detailImg,
if strings.Contains(k, "white_") {
whiteTiktok = v.ByteUrl
localTiktokObj.Img = v.ByteUrl
continue
}
tiktokImg = append(tiktokImg, v.ByteUrl)
}