diff --git a/business/partner/purchase/tiktok_store/store_sku2.go b/business/partner/purchase/tiktok_store/store_sku2.go index 52a5eadab..badd593fc 100644 --- a/business/partner/purchase/tiktok_store/store_sku2.go +++ b/business/partner/purchase/tiktok_store/store_sku2.go @@ -435,12 +435,8 @@ func (p *PurchaseHandler) UpdateStoreSkusSpecTag(ctx *jxcontext.Context, vendorO return err } -func GetProductAuditList(vendorOrgCode string) map[string]string { - var page int64 = 1 - var pageSize int64 = 1 - +func GetProductAuditList(vendorOrgCode string, page, pageSize int64) map[string]string { updateCategory := make(map[string]string, 100) // 修改分类的Map - data, _, err := getAPI(vendorOrgCode, 0, "").GetProductAuditList(page, pageSize, 2) if err != nil || len(data) == 0 { return nil diff --git a/controllers/cms_sku.go b/controllers/cms_sku.go index 66940a805..846c2f31b 100644 --- a/controllers/cms_sku.go +++ b/controllers/cms_sku.go @@ -845,8 +845,11 @@ type CategoryList struct { // @router /UpdateTiktokCategory [post] func (c *SkuController) UpdateTiktokCategory() { c.callUpdateTiktokCategory(func(params *tSkuUpdateTiktokCategoryParams) (interface{}, string, error) { - data := tiktok_store.GetProductAuditList("57939570") + var page int64 = 1 + var pageSize int64 = 1 + //var count int64 = 0 + data := tiktok_store.GetProductAuditList("57939570", page, pageSize) ddIDList := make([]string, 0, 100) skuList := make([]CategoryList, 0, 100) db := dao.GetDB()