This commit is contained in:
邹宗楠
2023-10-18 12:41:49 +08:00
parent e7abdef59f
commit 0152cfb581
4 changed files with 5 additions and 4 deletions

View File

@@ -280,7 +280,8 @@ func (a *API) AccessAPI2(baseURL, action string, params map[string]interface{})
retVal.Message, _ = jsonResult1[msgKey].(string)
newErr := utils.NewErrorIntCode(retVal.Message, code)
if _, ok := exceedLimitCodes[code]; ok {
return platformapi.ErrLevelExceedLimit, newErr
//return platformapi.ErrLevelExceedLimit, newErr
return platformapi.ErrLevelRecoverableErr, newErr
}
return platformapi.ErrLevelCodeIsNotOK, newErr
})

View File

@@ -91,7 +91,7 @@ func TestCancelOrder(t *testing.T) {
}
func TestEvaluateRider(t *testing.T) {
err := api.EvaluateRider(123456789, "1529387562097059", 1, "just a test")
err := api.EvaluateRider(4614631, "1697594622186088963", 1, "提前点击送达")
if err != nil {
t.Fatal(err)
}

View File

@@ -27,7 +27,7 @@ func init() {
//商超
//api = New("5873", "41c479790a76f86326f89e8048964739", "", "token_nngsVP37s-HXY86xe85H7Q") //token_n4TwqCntWWuvQwAawzxC0w
api = New("5873", "41c479790a76f86326f89e8048964739", "", "token_rfAD6OxSVxkTeCO1XmNCZg") //token_n4TwqCntWWuvQwAawzxC0w
api = New("5873", "41c479790a76f86326f89e8048964739", "", "token_rn25Arxm_1JSvQM6CWpJzQ") //token_n4TwqCntWWuvQwAawzxC0w
//api = New("5873", "41c479790a76f86326f89e8048964739", "", "token_r36FEse6_ywebQI65FNNWA") //token_n4TwqCntWWuvQwAawzxC0w
cookieStr := `
acctId=57396785; token=0bWbK5VbK50E2BmIhIH2zHB-am_y7mB37yXHm6RLZWx4*; wmPoiId=-1;

View File

@@ -25,7 +25,7 @@ func TestRetailCatUpdate(t *testing.T) {
// 测试获取门店分类列表
func TestRetailCatList(t *testing.T) {
result, err := api.RetailCatList("18900165")
result, err := api.RetailCatList("19284062")
if err != nil {
t.Fatal(err)
}