This commit is contained in:
邹宗楠
2022-11-21 13:51:12 +08:00
parent 79512dc35a
commit 24b5da9890
2 changed files with 5 additions and 6 deletions

View File

@@ -435,12 +435,8 @@ func (p *PurchaseHandler) UpdateStoreSkusSpecTag(ctx *jxcontext.Context, vendorO
return err return err
} }
func GetProductAuditList(vendorOrgCode string) map[string]string { func GetProductAuditList(vendorOrgCode string, page, pageSize int64) map[string]string {
var page int64 = 1
var pageSize int64 = 1
updateCategory := make(map[string]string, 100) // 修改分类的Map updateCategory := make(map[string]string, 100) // 修改分类的Map
data, _, err := getAPI(vendorOrgCode, 0, "").GetProductAuditList(page, pageSize, 2) data, _, err := getAPI(vendorOrgCode, 0, "").GetProductAuditList(page, pageSize, 2)
if err != nil || len(data) == 0 { if err != nil || len(data) == 0 {
return nil return nil

View File

@@ -845,8 +845,11 @@ type CategoryList struct {
// @router /UpdateTiktokCategory [post] // @router /UpdateTiktokCategory [post]
func (c *SkuController) UpdateTiktokCategory() { func (c *SkuController) UpdateTiktokCategory() {
c.callUpdateTiktokCategory(func(params *tSkuUpdateTiktokCategoryParams) (interface{}, string, error) { 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) ddIDList := make([]string, 0, 100)
skuList := make([]CategoryList, 0, 100) skuList := make([]CategoryList, 0, 100)
db := dao.GetDB() db := dao.GetDB()