宝象购修复
This commit is contained in:
+4
-2
@@ -5,6 +5,7 @@ import cn.hutool.core.map.MapUtil;
|
||||
import cn.hutool.extra.servlet.ServletUtil;
|
||||
import cn.iocoder.yudao.framework.common.exception.ServiceException;
|
||||
import cn.iocoder.yudao.framework.common.exception.YshopException;
|
||||
import cn.iocoder.yudao.framework.common.pojo.ApiResult;
|
||||
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
|
||||
import cn.iocoder.yudao.framework.apilog.core.service.ApiErrorLogFrameworkService;
|
||||
import cn.iocoder.yudao.framework.apilog.core.service.dto.ApiErrorLogCreateReqDTO;
|
||||
@@ -217,9 +218,10 @@ public class GlobalExceptionHandler {
|
||||
}
|
||||
|
||||
@ExceptionHandler(value = YshopException.class)
|
||||
public CommonResult<?> yshopException(YshopException ex){
|
||||
public ApiResult<?> yshopException(YshopException ex){
|
||||
log.info("[YshopException]",ex);
|
||||
return CommonResult.error(ex.getErrorCode(), ex.getMessage());
|
||||
return ApiResult.fail(ex.getErrorCode(),ex.getMessage());
|
||||
//return CommonResult.error(ex.getErrorCode(), ex.getMessage());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user