This commit is contained in:
Frank.R.Wu 2021-12-09 14:37:08 +08:00
parent ba32cc25e7
commit f71bfda28e

View File

@ -21,17 +21,19 @@ public class UnitActions {
public UnitActions(NCManagerAction managerAction) {
this.managerAction = managerAction;
}
private static String convertContractName(String contractID) {
ContractDesp desp = NodeCenterActions.getContractByName(contractID);
if (desp != null) return desp.contractID;
return contractID;
}
private void simpleReply(ResultCallback resultCallback, String action, Object data) {
Map<String, Object> jsonResult = new HashMap<>();
jsonResult.put("action", action);
jsonResult.put("data", data);
resultCallback.onResult(jsonResult);
}
private static String convertContractName(String contractID) {
ContractDesp desp = NodeCenterActions.getContractByName(contractID);
if (desp != null) return desp.contractID;
return contractID;
}
/**
* 显示当前用户可见的集群