|
@@ -1,5 +1,6 @@
|
|
package com.qmth.themis.exam.aspect;
|
|
package com.qmth.themis.exam.aspect;
|
|
|
|
|
|
|
|
+import com.qmth.themis.business.constant.SystemConstant;
|
|
import com.qmth.themis.business.util.JacksonUtil;
|
|
import com.qmth.themis.business.util.JacksonUtil;
|
|
import com.qmth.themis.business.util.ServletUtil;
|
|
import com.qmth.themis.business.util.ServletUtil;
|
|
import com.qmth.themis.common.exception.BusinessException;
|
|
import com.qmth.themis.common.exception.BusinessException;
|
|
@@ -73,7 +74,7 @@ public class ApiControllerAspect {
|
|
}
|
|
}
|
|
return joinPoint.proceed();
|
|
return joinPoint.proceed();
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
- log.error("Api exception", e);
|
|
|
|
|
|
+ log.error(SystemConstant.LOG_ERROR, e);
|
|
if (e instanceof BusinessException) {
|
|
if (e instanceof BusinessException) {
|
|
return ResultUtil.error((BusinessException) e, e.getMessage());
|
|
return ResultUtil.error((BusinessException) e, e.getMessage());
|
|
} else {
|
|
} else {
|