+ mtwmapi.ErrCodeOpFailed
This commit is contained in:
@@ -22,7 +22,8 @@ func TestPoiGetIDs(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestPoiMGet(t *testing.T) {
|
||||
result, err := api.PoiMGet([]string{testPoiCode})
|
||||
result, err := api.PoiMGet([]string{"2461723"})
|
||||
t.Log(utils.Format4Output(result, false))
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
@@ -32,7 +33,6 @@ func TestPoiMGet(t *testing.T) {
|
||||
if result[0].AppPoiCode != testPoiCode {
|
||||
t.Fatal("test_poi_01 is not equal")
|
||||
}
|
||||
t.Log(utils.Format4Output(result, false))
|
||||
}
|
||||
|
||||
func TestPoiSave(t *testing.T) {
|
||||
@@ -80,3 +80,14 @@ func TestPoiStatus(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestPoiShipTimeUpdate(t *testing.T) {
|
||||
err := api.PoiShipTimeUpdate("7174130", "00:00-23:00")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
err = api.PoiOpen("6741258")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user