+ 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

@@ -46,7 +46,8 @@ const (
ErrCodeAccessLimited = 711 // 接口调用过于频繁,触发流控,请降低调用频率 ErrCodeAccessLimited = 711 // 接口调用过于频繁,触发流控,请降低调用频率
ErrCodeNoAppFood = 805 // 不存在此菜品 ErrCodeNoAppFood = 805 // 不存在此菜品
ErrCodeNoSuchOrder = 808 // 不存在此订单 ErrCodeNoSuchOrder = 806 // 不存在此订单
ErrCodeOpFailed = 808 // 操作失败(如订单在操作时,状态已变更等情况)
ErrCodeSkuCategoryNotExist = 1021 // 菜品分类不存在 ErrCodeSkuCategoryNotExist = 1021 // 菜品分类不存在
ErrCodeSkuCategoryExist = 1037 // 菜品分类已存在 ErrCodeSkuCategoryExist = 1037 // 菜品分类已存在
) )

View File

@@ -22,7 +22,8 @@ func TestPoiGetIDs(t *testing.T) {
} }
func TestPoiMGet(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 { if err != nil {
t.Fatal(err) t.Fatal(err)
} }
@@ -32,7 +33,6 @@ func TestPoiMGet(t *testing.T) {
if result[0].AppPoiCode != testPoiCode { if result[0].AppPoiCode != testPoiCode {
t.Fatal("test_poi_01 is not equal") t.Fatal("test_poi_01 is not equal")
} }
t.Log(utils.Format4Output(result, false))
} }
func TestPoiSave(t *testing.T) { func TestPoiSave(t *testing.T) {
@@ -80,3 +80,14 @@ func TestPoiStatus(t *testing.T) {
t.Fatal(err) 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)
}
}