Skip to content

Commit f54b672

Browse files
author
peggypig
committed
baseinfo change GET to POST
1 parent fec62d0 commit f54b672

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,5 +186,5 @@ public class Main {
186186

187187
- 0.8.2.8-release
188188

189-
PathX、ULB、VPC维护更新,USMS新增接口
189+
PathX、ULB、VPC维护更新,USMS新增接口,接口调用改用POST方式
190190

ucloud-sdk-java-common/src/main/java/cn/ucloud/common/client/DefaultUcloudClient.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,29 +27,29 @@ public DefaultUcloudClient(UcloudConfig config) {
2727
@Override
2828
public GetRegionResult getRegion() throws Exception {
2929
UcloudHttp http = new UcloudHttpImpl(GetRegionResult.class);
30-
return (GetRegionResult) http.doGet(new GetRegionParam(), config, null);
30+
return (GetRegionResult) http.doPost(new GetRegionParam(), config, null);
3131
}
3232

3333
@Override
3434
public void getRegion(UcloudHandler<GetRegionResult> handler, Boolean... asyncFlag) {
3535
UcloudHttp http = new UcloudHttpImpl(GetRegionResult.class);
3636
try {
37-
http.doGet(new GetRegionParam(), config, handler, asyncFlag);
37+
http.doPost(new GetRegionParam(), config, handler, asyncFlag);
3838
} catch (Exception e) {
3939
}
4040
}
4141

4242
@Override
4343
public GetProjectListResult getProjectList() throws Exception {
4444
UcloudHttp http = new UcloudHttpImpl(GetProjectListResult.class);
45-
return (GetProjectListResult) http.doGet(new GetProjectListParam(), config, null);
45+
return (GetProjectListResult) http.doPost(new GetProjectListParam(), config, null);
4646
}
4747

4848
@Override
4949
public void getProjectList(UcloudHandler<GetProjectListResult> handler, Boolean... asyncFlag) {
5050
UcloudHttp http = new UcloudHttpImpl(GetProjectListResult.class);
5151
try {
52-
http.doGet(new GetProjectListParam(), config, handler, asyncFlag);
52+
http.doPost(new GetProjectListParam(), config, handler, asyncFlag);
5353
} catch (Exception e) {
5454
}
5555
}
@@ -58,15 +58,15 @@ public void getProjectList(UcloudHandler<GetProjectListResult> handler, Boolean.
5858
public BaseResponseResult doAction(BaseRequestParam param,
5959
Class<? extends BaseResponseResult> clazz) throws Exception {
6060
UcloudHttp http = new UcloudHttpImpl(clazz);
61-
return (BaseResponseResult) http.doGet(param, config, null);
61+
return (BaseResponseResult) http.doPost(param, config, null);
6262
}
6363

6464
@Override
6565
public void doAction(BaseRequestParam param, Class<? extends BaseResponseResult> clazz,
6666
UcloudHandler<? extends BaseResponseResult> handler, Boolean... asyncFlag) {
6767
UcloudHttp http = new UcloudHttpImpl(clazz);
6868
try {
69-
http.doGet(param, config, handler, asyncFlag);
69+
http.doPost(param, config, handler, asyncFlag);
7070
} catch (Exception e) {
7171
}
7272
}

0 commit comments

Comments
 (0)