This commit is contained in:
邹宗楠
2023-12-12 09:31:45 +08:00
parent 684b892536
commit aaf973e079
4 changed files with 14 additions and 5 deletions

View File

@@ -20,13 +20,13 @@ func init() {
baseapi.Init(sugarLogger)
// 菜市
api = New("589", "a81eb3df418d83d6a1a4b7c572156d2f", "", "")
//api = New("589", "a81eb3df418d83d6a1a4b7c572156d2f", "", "")
// 果园
//api = New("4123", "df2c88338b85f830cebce2a9eab56628", "", "")
//商超
//api = New("5873", "41c479790a76f86326f89e8048964739", "", "token_nrOXcZts7NkAsoc_oR5CZA") //token_n4TwqCntWWuvQwAawzxC0w
api = New("5873", "41c479790a76f86326f89e8048964739", "", "token_u368I2OxTY4ys4wWuVVMOQ") //token_n4TwqCntWWuvQwAawzxC0w
cookieStr := `
acctId=57396785; token=0bWbK5VbK50E2BmIhIH2zHB-am_y7mB37yXHm6RLZWx4*; wmPoiId=-1;
`

View File

@@ -24,7 +24,7 @@ func TestPoiGetIDs(t *testing.T) {
}
func TestPoiMGet(t *testing.T) {
result, err := api.PoiMGet([]string{"18172253"})
result, err := api.PoiMGet([]string{"18580531"})
t.Log(utils.Format4Output(result, false))
if err != nil {
t.Fatal(err)
@@ -37,6 +37,15 @@ func TestPoiMGet(t *testing.T) {
}
}
func TestPoiClose(t *testing.T) {
err := api.PoiClose("18580531")
if err == nil {
err = api.PoiOffline("18580531")
}
fmt.Println(err)
}
func TestPoiSave(t *testing.T) {
//result, err := api.PoiMGet([]string{testPoiCode})
//if err != nil {