This commit is contained in:
邹宗楠
2023-02-20 14:55:32 +08:00
parent bd0809ac40
commit a0e5cfaaf4
3 changed files with 13 additions and 22 deletions

View File

@@ -34,7 +34,7 @@ func init() {
//api = New("0e12f461-2e6b-49ca-bce6-935c6672362d", "f2ed33075faf4773a47e065acd79532b", "aed14cbbecac4456843570e90c5f46ec")
// 京东超市 381564
api = New("f99d25b8-33a6-4251-a97c-5e24b80b0005", "d2d1e2e3213d4320bc2712a684307831", "1750f5b9848d4a6492c1c20b487074da")
api = New("fe07cad2-d366-424b-8e85-9b81d7987cba", "8376b3071c5b49fb96a4c82be0dbc104", "a55b47042d5845018834f42d42ffafb7")
//prod zs
// api = New("6f8d3290-0120-4ad7-8b53-943c67c84f3f", "789279b9ae814ba091ac52815566b54d", "5d668cd227644637bb0fd73ed8118ec8")
// const cookieValue = "YYJV3NHVBPHLD36FWP6F3EM5PTXJ2XZQS7U4HWRIDPP4IWGUKUIB4XG5N26CZRDLDF7PKOXBPD6BNTUAJLETLZOIWMCVFI3K6MYZIY4QBIXIMXYDJNUKFGJVQTN5356SAD6WPCIHWNQAG7DDMF7L7S3SHCT3RM3CQG7IJIPUQ3THS5UIUYWMKINM7ETUOQB7OBPOPZVCT3ZJY55243TDVXLO25PP4UYSPTTPMNQ7HPMWOJKJ3BJWGVHD243MXH7NZWW264TKN5UOCJBSSSOKD2QQII"

View File

@@ -32,23 +32,14 @@ import (
// t.Log(utils.Format4Output(result, false))
//}
//
//func TestGetStationsByVenderId(t *testing.T) {
// result, err := api.GetStationsByVenderId()
// if err != nil {
// t.Fatal(err)
// }
// findStore := false
// for _, v := range result {
// if v == mustExistStoreID {
// findStore = true
// break
// }
// }
// if !findStore {
// baseapi.SugarLogger.Fatalf("result have no store:%s", mustExistStoreID)
// }
//}
//
func TestGetStationsByVenderId(t *testing.T) {
result, err := api.GetStationsByVenderId()
if err != nil {
t.Fatal(err)
}
t.Log(utils.Format4Output(result, false))
}
func TestGetStoreInfoByStationNo(t *testing.T) {
result, err := api.GetStoreInfoByStationNo2("12535376")
if err != nil {

View File

@@ -11,7 +11,7 @@ import (
)
func TestRetailCatList(t *testing.T) {
result, err := api.RetailCatList("8694203 ")
result, err := api.RetailCatList("16690980")
if err != nil {
t.Fatal(err)
}
@@ -19,9 +19,9 @@ func TestRetailCatList(t *testing.T) {
}
func TestRetailCatUpdate(t *testing.T) {
err := api.RetailCatUpdate("8694203", "时令鲜蔬", &Param4UpdateCat{
CategoryNameOrigin: "1",
CategoryCodeOrigin: "1",
err := api.RetailCatUpdate("16690980", "咸菜罐头", &Param4UpdateCat{
CategoryNameOrigin: "咸菜罐头",
CategoryCodeOrigin: "",
CategoryCode: "1",
Sequence: 3,
})