Showing
1 changed file
with
2 additions
and
2 deletions
| @@ -94,7 +94,7 @@ public class RoomOperationServiceImpl implements RoomOperationSerivice { | @@ -94,7 +94,7 @@ public class RoomOperationServiceImpl implements RoomOperationSerivice { | ||
| 94 | paramsMap.put("delayTime", delayTime); | 94 | paramsMap.put("delayTime", delayTime); |
| 95 | HttpResponse execute = null; | 95 | HttpResponse execute = null; |
| 96 | try { | 96 | try { |
| 97 | - execute = HttpRequest.post(delayTimeUrl) | 97 | + execute = HttpRequest.put(delayTimeUrl) |
| 98 | .header("Content-Type", "application/json") | 98 | .header("Content-Type", "application/json") |
| 99 | .body(JSONUtils.obj2json(paramsMap)).timeout(30000).execute(); | 99 | .body(JSONUtils.obj2json(paramsMap)).timeout(30000).execute(); |
| 100 | if (execute.isOk()) { | 100 | if (execute.isOk()) { |
| @@ -136,7 +136,7 @@ public class RoomOperationServiceImpl implements RoomOperationSerivice { | @@ -136,7 +136,7 @@ public class RoomOperationServiceImpl implements RoomOperationSerivice { | ||
| 136 | paramsMap.put("blockStatus", blockParam.getBlockStatus()); | 136 | paramsMap.put("blockStatus", blockParam.getBlockStatus()); |
| 137 | HttpResponse execute = null; | 137 | HttpResponse execute = null; |
| 138 | try { | 138 | try { |
| 139 | - execute = HttpRequest.post(blockStatusUrl) | 139 | + execute = HttpRequest.put(blockStatusUrl) |
| 140 | .header("Content-Type", "application/json") | 140 | .header("Content-Type", "application/json") |
| 141 | .body(JSONUtils.obj2json(paramsMap)).timeout(30000).execute(); | 141 | .body(JSONUtils.obj2json(paramsMap)).timeout(30000).execute(); |
| 142 | if (execute.isOk()) { | 142 | if (execute.isOk()) { |
-
Please register or login to post a comment