feat: support requestID auto append in agent websocket

This commit is contained in:
CaiHQ 2021-11-01 18:52:02 +08:00
parent 0dba1fe49a
commit f2ae920f6a

View File

@ -22,9 +22,11 @@ public abstract class ResultCallback {
public Channel getChannel() { public Channel getChannel() {
return channel; return channel;
} }
public void onResult(Map<?,?> object){
public void onResult(Map object) {
onResult(JsonUtil.toJson(object)); onResult(JsonUtil.toJson(object));
} }
public void onResult(JsonObject jo) { public void onResult(JsonObject jo) {
onResult(jo.toString()); onResult(jo.toString());
} }