Commit 702ff965 authored by 周健威's avatar 周健威

修改bug

parent bce414fe
......@@ -35,7 +35,7 @@ public interface CommonLogService {
* @param xxLogEntity
* @param result
*/
void initCommonLogLastPart(XxLogEntity xxLogEntity, BaseResponse result);
void initCommonLogLastPart(XxLogEntity xxLogEntity, Object result);
/**
* 初始化日志后半部分(String)
......
......@@ -103,7 +103,7 @@ public class CommonLogServiceImpl implements CommonLogService {
}
@Override
public void initCommonLogLastPart(XxLogEntity xxLogEntity, BaseResponse result) {
public void initCommonLogLastPart(XxLogEntity xxLogEntity, Object result) {
initCommonLogLastPart(xxLogEntity, JSON.toJSONString(result));
}
......
......@@ -64,7 +64,7 @@ public class XxLogInterceptor{
if(result instanceof JSONObject) {
commonLogService.initCommonLogLastPart(xxLogEntity, ((JSONObject) result).toJSONString());
}else{
commonLogService.initCommonLogLastPart(xxLogEntity, (BaseResponse) result);
commonLogService.initCommonLogLastPart(xxLogEntity, result);
}
}catch (BaseException e){
commonLogService.initCommonLogLastPart(xxLogEntity, ObjectRestResponse.createFailedResult(e.getStatus(), e.getMessage()));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment