From b1bf67c802c8ff45bde76fe30735a106449381b2 Mon Sep 17 00:00:00 2001 From: CaiHQ Date: Fri, 18 Feb 2022 11:14:10 +0800 Subject: [PATCH] fix: MultiPointCooperationExecutor --- .../nodecenter/client/NodeCenterClientController.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/bdware/server/nodecenter/client/NodeCenterClientController.java b/src/main/java/org/bdware/server/nodecenter/client/NodeCenterClientController.java index ddf58fa..b8cf84d 100644 --- a/src/main/java/org/bdware/server/nodecenter/client/NodeCenterClientController.java +++ b/src/main/java/org/bdware/server/nodecenter/client/NodeCenterClientController.java @@ -744,7 +744,11 @@ public class NodeCenterClientController implements NodeCenterConn { @Action(async = true) public void onDistribute(JsonObject json, ResultCallback rc) { if (json.has("over")) { - String distributeID = json.get("distributeID").getAsString(); + + String distributeID = null; + if (json.has("distributeID")) + distributeID = json.get("distributeID").getAsString(); + else distributeID = json.get("responseID").getAsString(); ResultCallback to = distributeReqMap.get(distributeID); distributeReqMap.remove(distributeID); to.onResult(json.get("content").getAsString());