|
@@ -109,7 +109,7 @@ public class Tx implements Interceptor {
|
|
|
if (conn != null) try {conn.rollback();} catch (Exception e1) {LogKit.error(e1.getMessage(), e1);}
|
|
if (conn != null) try {conn.rollback();} catch (Exception e1) {LogKit.error(e1.getMessage(), e1);}
|
|
|
|
|
|
|
|
// 支持在 controller 中 try catch 的 catch 块中使用 render(...) 并 throw e,实现灵活控制 render
|
|
// 支持在 controller 中 try catch 的 catch 块中使用 render(...) 并 throw e,实现灵活控制 render
|
|
|
- if (inv.isActionInvocation() && inv.getController().getRender() != null && txFun == null) {
|
|
|
|
|
|
|
+ if (txFun == null && inv.isActionInvocation() && inv.getController().getRender() != null) {
|
|
|
LogKit.error(t.getMessage(), t);
|
|
LogKit.error(t.getMessage(), t);
|
|
|
} else {
|
|
} else {
|
|
|
throw t instanceof RuntimeException ? (RuntimeException)t : new ActiveRecordException(t);
|
|
throw t instanceof RuntimeException ? (RuntimeException)t : new ActiveRecordException(t);
|