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