fix: MultiPointCooperationExecutor

This commit is contained in:
CaiHQ 2022-02-18 11:14:10 +08:00
parent 8618e61d98
commit b1bf67c802

View File

@ -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());