1
This commit is contained in:
@@ -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
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user