1
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
||||
"errors"
|
||||
"fmt"
|
||||
product_addV2_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/product_addV2/response"
|
||||
"git.rosy.net.cn/jx-callback/globals"
|
||||
beego "github.com/astaxie/beego/server/web"
|
||||
"strings"
|
||||
"time"
|
||||
@@ -1095,6 +1096,7 @@ func MakeProductFormatNew(api *tiktokShop.API, skuNameId int64, categoryLeafId i
|
||||
}
|
||||
categoryMap := make(map[string][]map[string]interface{})
|
||||
tiktokBrandId, _ := getTiktokBrandId(api, db, upcCode, upcBrandName, upcTiktokBrandId, categoryLeafId)
|
||||
globals.SugarLogger.Debugf("---------categoryList.Data.Data- := %s", utils.Format4Output(categoryList.Data.Data, false))
|
||||
for _, v := range categoryList.Data.Data {
|
||||
if v.Required != model.YES {
|
||||
continue
|
||||
@@ -1114,6 +1116,7 @@ func MakeProductFormatNew(api *tiktokShop.API, skuNameId int64, categoryLeafId i
|
||||
categoryMap[utils.Int64ToStr(v.PropertyId)] = options
|
||||
}
|
||||
}
|
||||
globals.SugarLogger.Debugf("---------ccategoryMap- := %s", utils.Format4Output(categoryMap, false))
|
||||
productFormatNew := utils.Format4Output(categoryMap, false)
|
||||
dao.UpdateSkuNameTiktokAttr(dao.GetDB(), skuNameId, productFormatNew)
|
||||
return utils.Format4Output(categoryMap, false), tiktokBrandId, nil
|
||||
|
||||
Reference in New Issue
Block a user