|
|
@ -261,11 +261,14 @@ public class Controler { |
|
|
|
} |
|
|
|
|
|
|
|
var service = UfApplication.getContext().getBean(serviceClass); |
|
|
|
Object actionResult = null; |
|
|
|
if ( method.getReturnType().equals(Void.TYPE) ) { |
|
|
|
method.invoke(service, actionParams.toArray()); |
|
|
|
} else { |
|
|
|
actionResult = method.invoke(service, actionParams.toArray()); |
|
|
|
return AppRet.success(); |
|
|
|
} |
|
|
|
|
|
|
|
var actionResult = method.invoke(service, actionParams.toArray()); |
|
|
|
if ( actionResult instanceof AppRet ) { |
|
|
|
return (AppRet)actionResult; |
|
|
|
} |
|
|
|
return AppRet.success(actionResult); |
|
|
|
} |
|
|
|