This commit is contained in:
邹宗楠
2023-02-02 09:22:56 +08:00
parent 91a71c12dc
commit a4ace51d7f
7 changed files with 39 additions and 12 deletions

View File

@@ -2,7 +2,6 @@ package jdapi
import (
"fmt"
"git.rosy.net.cn/jx-callback/globals"
"regexp"
"strings"
@@ -369,7 +368,6 @@ func (a *API) ChangeShopCategoryOrder(pid int64, childIds []int64) error {
KeyChildIds: childIds,
}
_, err := a.AccessAPINoPage("pms/changeShopCategoryOrder", params, nil, nil, nullResultParser)
globals.SugarLogger.Debugf("changeShopCategoryOrder === %v", err)
return err
}

View File

@@ -32,6 +32,11 @@ func TestQueryCategoriesByOrgCode(t *testing.T) {
}
}
func TestChangeShopCategoryOrder(t *testing.T) {
var aa = []int64{6836731, 6836749, 6836718, 6836757, 6836770, 6836779, 6836719, 6836720, 6836721, 6836722, 6836793, 6836937, 6836723, 6836724, 6836794, 6836839, 6836725, 6836796, 6836726, 6836797, 6836798, 6836799, 6836727, 6836840, 6836940, 6836800, 6836801, 6836802, 6837303}
api.ChangeShopCategoryOrder(0, aa)
}
//
//func TestQueryChildCategoriesForOP(t *testing.T) {
// result, err := api.QueryChildCategoriesForOP(0)