This commit is contained in:
邹宗楠
2023-01-13 17:25:09 +08:00
parent eec044c49c
commit a134b95fd0
7 changed files with 56 additions and 39 deletions

View File

@@ -29,10 +29,12 @@ func init() {
// 天天果园
//api = New("c45e6510-00ba-4be2-977e-bcb9c9792cc7", "5d5577a2506f41b8b4ec520ba83490f5", "0b01b9eeb15b41dab1c3d05d95c17a26")
// 京东果园
api = New("b1138139-9610-4b80-9a63-a63da4773885", "5d5577a2506f41b8b4ec520ba83490f5", "0b01b9eeb15b41dab1c3d05d95c17a26")
//api = New("b1138139-9610-4b80-9a63-a63da4773885", "5d5577a2506f41b8b4ec520ba83490f5", "0b01b9eeb15b41dab1c3d05d95c17a26")
// 果切
//api = New("0e12f461-2e6b-49ca-bce6-935c6672362d", "f2ed33075faf4773a47e065acd79532b", "aed14cbbecac4456843570e90c5f46ec")
// 京东超市 381564
api = New("f99d25b8-33a6-4251-a97c-5e24b80b0005", "d2d1e2e3213d4320bc2712a684307831", "1750f5b9848d4a6492c1c20b487074da")
//prod zs
// api = New("6f8d3290-0120-4ad7-8b53-943c67c84f3f", "789279b9ae814ba091ac52815566b54d", "5d668cd227644637bb0fd73ed8118ec8")
// const cookieValue = "YYJV3NHVBPHLD36FWP6F3EM5PTXJ2XZQS7U4HWRIDPP4IWGUKUIB4XG5N26CZRDLDF7PKOXBPD6BNTUAJLETLZOIWMCVFI3K6MYZIY4QBIXIMXYDJNUKFGJVQTN5356SAD6WPCIHWNQAG7DDMF7L7S3SHCT3RM3CQG7IJIPUQ3THS5UIUYWMKINM7ETUOQB7OBPOPZVCT3ZJY55243TDVXLO25PP4UYSPTTPMNQ7HPMWOJKJ3BJWGVHD243MXH7NZWW264TKN5UOCJBSSSOKD2QQII"

View File

@@ -1,5 +1,7 @@
package jdapi
import "testing"
//
//import (
// "fmt"
@@ -20,15 +22,16 @@ package jdapi
// baseapi.SugarLogger.Debug(utils.Format4Output(result, false), err)
//}
//
//func TestQueryCategoriesByOrgCode(t *testing.T) {
// result, err := api.QueryCategoriesByOrgCode()
// if err != nil {
// t.Fatal(err)
// }
// if len(result) == 0 {
// t.Fatal("QueryCategoriesByOrgCode category list is empty!")
// }
//}
func TestQueryCategoriesByOrgCode(t *testing.T) {
result, err := api.QueryCategoriesByOrgCode()
if err != nil {
t.Fatal(err)
}
if len(result) == 0 {
t.Fatal("QueryCategoriesByOrgCode category list is empty!")
}
}
//
//func TestQueryChildCategoriesForOP(t *testing.T) {
// result, err := api.QueryChildCategoriesForOP(0)

View File

@@ -1,6 +1,7 @@
package jdapi
import (
"fmt"
"git.rosy.net.cn/baseapi"
"git.rosy.net.cn/baseapi/utils"
"testing"
@@ -97,6 +98,12 @@ func TestGetCorporationInfo2(t *testing.T) {
baseapi.SugarLogger.Debug(utils.Format4Output(imgList, false))
}
func TestC(t *testing.T) {
a := 58
a = a | 56
fmt.Println(a)
}
//func TestGetStoreList(t *testing.T) {
// result, err := api.GetStoreList("104.054195", "30.581782")
// if err != nil {