-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
执行顺序是否错误? #13
Comments
要这样修改执行顺序的考虑是:如果自定义的监听器执行异常,operatorResult就设置不上了? |
//OP监听器--成功
if (wrapper.getListener(OperatorEventEnum.SUCCESS) != null) {
wrapper.getListener(OperatorEventEnum.SUCCESS).forEach(t -> ((OperatorListener)t).onEvent(wrapper, OperatorEventEnum.SUCCESS));
}
wrapper.getOperatorResult().setResult(operatorResult);
2:修改后
wrapper.getOperatorResult().setResult(operatorResult);
//OP监听器--成功
if (wrapper.getListener(OperatorEventEnum.SUCCESS) != null) {
wrapper.getListener(OperatorEventEnum.SUCCESS).forEach(t -> ((OperatorListener)t).onEvent(wrapper, OperatorEventEnum.SUCCESS));
}
The text was updated successfully, but these errors were encountered: