This commit is contained in:
邹宗楠
2023-03-03 15:08:12 +08:00
parent 200c2aa7b0
commit 97699b2670

View File

@@ -1,6 +1,7 @@
package tiktok_api
import (
"encoding/json"
"fmt"
"testing"
)
@@ -42,3 +43,23 @@ func TestGetShipmentInfo(t *testing.T) {
func TestGetStoreAutoCallRiderInfo(t *testing.T) {
a.GetStoreAutoCallRiderInfo(64212030)
}
func TestMap2(t *testing.T) {
aa := `{
"四川":[
{"张淋":"18981810340"},{"李伟达":"18988808752"},
{"张淋":"18981810340"},{"李伟达":"18988808752"}
],
"广州":[
{"张淋":"18981810340"},{"李伟达":"18988808752"},
{"张淋":"18981810340"},{"李伟达":"18988808752"}
],
"西安":[
{"张淋":"18981810340"},{"李伟达":"18988808752"},
{"张淋":"18981810340"},{"李伟达":"18988808752"}
]
}`
list := make(map[string][]map[string]string, 0)
json.Unmarshal([]byte(aa), &list)
t.Log(list)
}