|
@@ -36,27 +36,27 @@ public class SocketV2 {
|
|
|
json.setMode("SINGLE");
|
|
|
getPostApi("/intergrationPlatform")
|
|
|
.body(JSONUtil.toJsonStr(json))
|
|
|
- .executeAsync();
|
|
|
+ .executeAsync().close();
|
|
|
}
|
|
|
|
|
|
public void sendUserCodeListMessage(WebSocketByListUserCode json) {
|
|
|
json.setMode("MULTI");
|
|
|
getPostApi("/intergrationPlatform")
|
|
|
.body(JSONUtil.toJsonStr(json))
|
|
|
- .executeAsync();
|
|
|
+ .executeAsync().close();
|
|
|
}
|
|
|
|
|
|
public void sendMessageToAll(WebSocketToAll json) {
|
|
|
json.setMode("ALL");
|
|
|
getPostApi("/intergrationPlatform")
|
|
|
.body(JSONUtil.toJsonStr(json))
|
|
|
- .executeAsync();
|
|
|
+ .executeAsync().close();
|
|
|
}
|
|
|
|
|
|
public void sendArchiveMessage(ArchiveSocketParam json) {
|
|
|
getPostApi("/archive")
|
|
|
.body(JSONUtil.toJsonStr(json))
|
|
|
- .executeAsync();
|
|
|
+ .executeAsync().close();
|
|
|
}
|
|
|
|
|
|
public void sendTask(SocketTask task) {
|
|
@@ -69,7 +69,7 @@ public class SocketV2 {
|
|
|
|
|
|
getPostApi("/intergrationPlatform")
|
|
|
.body(js.toJSONString(0))
|
|
|
- .executeAsync();
|
|
|
+ .executeAsync().close();
|
|
|
}
|
|
|
|
|
|
/**
|