+ mtwmapi.ErrCodeOpFailed

This commit is contained in:
gazebo
2019-08-02 13:10:02 +08:00
parent e2185bf02e
commit a9f5e5595c
2 changed files with 15 additions and 3 deletions

View File

@@ -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)
}
}