This commit is contained in:
邹宗楠
2026-03-25 14:59:30 +08:00
parent f6f23824ea
commit af8d48b40d

View File

@@ -5,7 +5,6 @@ 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"
@@ -983,7 +982,6 @@ func BatchGetChannelCategoryMapping() error {
if len(data) == 0 {
return fmt.Errorf("未查询到数据")
}
globals.SugarLogger.Debugf("--------len := %d", len(data))
count := len(data) / 50
if len(data)%50 != 0 {
count = count + 1
@@ -995,10 +993,8 @@ func BatchGetChannelCategoryMapping() error {
categoryList = append(categoryList, utils.Str2Int64(v.VendorCategoryID))
}
}
globals.SugarLogger.Debugf("--------categoryList := %d", len(categoryList))
api := getAPI("260477060", 0, "")
for i := 1; i <= count; i++ {
globals.SugarLogger.Debugf("--------i := %d", i)
cats := make(map[int64]int64, 50)
if i == count {
cats, _ = api.BatchGetChannelCategoryMapping(categoryList[(i-1)*50:])