front: support startMulitipoint with args

fix: ContractClient missing arguments error
update: @Router arguments format
fix: ContractStatusRecorder null exception
This commit is contained in:
CaiHQ 2022-06-26 17:54:30 +08:00
parent 19a033c699
commit e7f7b80152

View File

@ -117,7 +117,7 @@ public class ActionExecutor<T, U> {
public void handle(String action, final U args, final T callback)
throws IllegalAccessException, IllegalArgumentException, InvocationTargetException {
// LOGGER.info("handling " + action + "...");
// LOGGER.debug("handle : " + action + " ->" + JsonUtil.toJson(args));
// LOGGER.info("handle : " + action + " ->" + JsonUtil.toJson(args));
if (null != action) {
if (staticData.containsKey(action)) {
@ -135,7 +135,7 @@ public class ActionExecutor<T, U> {
final Pair<Method, Object> pair = handlers.get(action);
Action actionAnnotations = pair.first.getAnnotation(Action.class);
if (!checkPermission(actionAnnotations, args, permission)) {
LOGGER.info("unauthorised action " + action);
LOGGER.info("unauthorised action " + action + " -> " + JsonUtil.toJson(args));
throw new IllegalArgumentException("unauthorised action " + action);
}