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