添加自动获取分类id

This commit is contained in:
邹宗楠
2023-03-21 16:15:55 +08:00
parent edd680602b
commit bb0e473f78
2 changed files with 35 additions and 10 deletions

View File

@@ -1,19 +1,12 @@
package jdapi
import (
"fmt"
"git.rosy.net.cn/baseapi/utils"
"git.rosy.net.cn/jx-callback/globals"
"testing"
)
//
//import (
// "fmt"
// "testing"
//
// "git.rosy.net.cn/baseapi"
// "git.rosy.net.cn/baseapi/utils"
//)
//
//func TestQueryPageBrandInfo(t *testing.T) {
// result, _, err := api.QueryPageBrandInfo(0, 0, 0, "京西")
// if err != nil {
@@ -40,6 +33,16 @@ func TestChangeShopCategoryOrder(t *testing.T) {
api.ChangeShopCategoryOrder(0, aa)
}
func TestGetSkuCategoryByName(t *testing.T) {
data, err := api.GetSkuCategoryBySkuName("九龙醉 42度 浓香型 白贴九龙白酒")
globals.SugarLogger.Debugf("data:=%s", utils.Format4Output(data, false))
globals.SugarLogger.Debugf("data:=%v", err)
}
func Test222(t *testing.T) {
fmt.Println(1&256 == 0)
}
//
//func TestQueryChildCategoriesForOP(t *testing.T) {
// result, err := api.QueryChildCategoriesForOP(0)