test
This commit is contained in:
@@ -28,15 +28,16 @@ func init() {
|
||||
}
|
||||
|
||||
func TestCategory(t *testing.T) {
|
||||
accesstoken := `{"access_token":"60f530b2-9ab6-4723-b487-c094918f0d21","expires_in":1666257163,"scope":"SCOPE","shop_id":"","shop_name":"小时达开放平台对接专用店","refresh_token":"1220666a-5e88-458c-a8c0-06d949fbbd3f","authority_id":""}`
|
||||
a := New("7136048270014416392", "c397aa9f-3927-47c4-8cfe-4d84e02602e0", accesstoken)
|
||||
data, err := a.GetShopCategory(0)
|
||||
fmt.Println("err=====", err)
|
||||
fmt.Println("data====", data)
|
||||
for _, v := range data {
|
||||
fmt.Println(v.Id, "---", v.Name, "---", v.IsLeaf, "---", v.Level)
|
||||
}
|
||||
fmt.Println("data====", err)
|
||||
}
|
||||
|
||||
func TestGetCatePropertyV2(t *testing.T) {
|
||||
data, err := a.GetCatePropertyV2(29146)
|
||||
|
||||
fmt.Println("err=====", err)
|
||||
fmt.Println("data====", data) // 202209281558450102081001701D7B32C5
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user