This commit is contained in:
邹宗楠
2022-11-18 17:39:58 +08:00
parent e745cd50db
commit 927df8a02a
2 changed files with 16 additions and 18 deletions

View File

@@ -9,6 +9,7 @@ import (
"git.rosy.net.cn/jx-callback/business/model"
"git.rosy.net.cn/jx-callback/business/model/dao"
"git.rosy.net.cn/jx-callback/business/partner/purchase/tiktok_store"
"git.rosy.net.cn/jx-callback/globals"
"github.com/astaxie/beego/server/web"
)
@@ -837,7 +838,16 @@ func (c *SkuController) BatchSetRestockingPrice() {
// @router /UpdateTiktokCategory [post]
func (c *SkuController) UpdateTiktokCategory() {
c.callUpdateCategory(func(params *tSkuUpdateCategoryParams) (interface{}, string, error) {
data, err := tiktok_store.GetProductAuditList("57939570")
return data, "", err
data := tiktok_store.GetProductAuditList("57939570")
globals.SugarLogger.Debugf("==========111 %s", utils.Format4Output(data, false))
for k, v := range data {
vendorCatgory, err := cms.GetVendorCategoriesByName(14, v)
if err != nil {
globals.SugarLogger.Debugf("err := %s", err)
}
data[k] = vendorCatgory.VendorCategoryID
}
globals.SugarLogger.Debugf("==========222 %s", utils.Format4Output(data, false))
return data, "", nil
})
}