SDK可指定requestMethod

This commit is contained in:
tanghc
2019-05-28 11:08:50 +08:00
parent 4bd3869ed8
commit cb6bdcc22c
10 changed files with 116 additions and 78 deletions

View File

@@ -75,7 +75,15 @@ public class GetStoryRequest extends BaseRequest<GetStoryResponse> {
return "alipay.story.find";
}
}
```
可重写`getRequestMethod()`方法指定HTTP请求method默认是POST。
```java
@Override
protected RequestMethod getRequestMethod() {
return RequestMethod.GET;
}
```
### 使用方式