|
|
@ -31,6 +31,7 @@ import ${domain}.frame.utils.LogUtil;
|
|
|
|
import ${domain}.frame.utils.MD5Util;
|
|
|
|
import ${domain}.frame.utils.MD5Util;
|
|
|
|
import ${domain}.frame.utils.MapperUtil;
|
|
|
|
import ${domain}.frame.utils.MapperUtil;
|
|
|
|
import ${domain}.frame.utils.StringUtil;
|
|
|
|
import ${domain}.frame.utils.StringUtil;
|
|
|
|
|
|
|
|
import ${domain}.module.wsys.mgr.LogerrManager;
|
|
|
|
<#if project.frameValue() = 1>
|
|
|
|
<#if project.frameValue() = 1>
|
|
|
|
import ${domain}.module.wsys.mgr.TokensManager;
|
|
|
|
import ${domain}.module.wsys.mgr.TokensManager;
|
|
|
|
import ${domain}.module.wsys.req.TokensBuildRequest;
|
|
|
|
import ${domain}.module.wsys.req.TokensBuildRequest;
|
|
|
@ -363,6 +364,12 @@ public class GlobalController {
|
|
|
|
e.printStackTrace();
|
|
|
|
e.printStackTrace();
|
|
|
|
response.addError(ErrorType.BUSINESS_ERROR, "方法执必须公开!");
|
|
|
|
response.addError(ErrorType.BUSINESS_ERROR, "方法执必须公开!");
|
|
|
|
} catch (InvocationTargetException e) {
|
|
|
|
} catch (InvocationTargetException e) {
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
LogerrManager logerrManager = LocalData.getBean(LogerrManager.class);
|
|
|
|
|
|
|
|
logerrManager.addErr("系统错误", e.getTargetException().getMessage(), LogUtil.getTrace(e));
|
|
|
|
|
|
|
|
} catch (Exception ignored) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
LogUtil.dumpException(e.getTargetException());
|
|
|
|
LogUtil.dumpException(e.getTargetException());
|
|
|
|
e.getTargetException().printStackTrace();
|
|
|
|
e.getTargetException().printStackTrace();
|
|
|
|
response.addError(ErrorType.BUSINESS_ERROR, "方法执行错误[" + e.getTargetException().getMessage() + "]");
|
|
|
|
response.addError(ErrorType.BUSINESS_ERROR, "方法执行错误[" + e.getTargetException().getMessage() + "]");
|
|
|
|