|
|
@@ -99,16 +99,16 @@ public class ApiServiceSMOImpl extends LoggerEngine implements IApiServiceSMO {
|
|
|
responseEntity = dataFlow.getResponseEntity();
|
|
|
|
|
|
} catch (DecryptException e) { //解密异常
|
|
|
- responseEntity = ResultVo.error("解密异常:" + e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR);
|
|
|
+ responseEntity = ResultVo.error("解密异常:" + e.getMessage());
|
|
|
} catch (BusinessException e) {
|
|
|
- responseEntity = ResultVo.error(e.getMessage(), HttpStatus.BAD_REQUEST);
|
|
|
+ responseEntity = ResultVo.error(e.getMessage());
|
|
|
} catch (NoAuthorityException e) {
|
|
|
- responseEntity = ResultVo.error("鉴权失败:" + e.getMessage(), HttpStatus.UNAUTHORIZED);
|
|
|
+ responseEntity = ResultVo.error("鉴权失败:" + e.getMessage());
|
|
|
} catch (InitConfigDataException e) {
|
|
|
- responseEntity = ResultVo.error("初始化失败:" + e.getMessage(), HttpStatus.BAD_REQUEST);
|
|
|
+ responseEntity = ResultVo.error("初始化失败:" + e.getMessage());
|
|
|
} catch (Exception e) {
|
|
|
logger.error("内部异常:", e);
|
|
|
- responseEntity = ResultVo.error("内部异常:" + e.getMessage() + e.getLocalizedMessage(), HttpStatus.INTERNAL_SERVER_ERROR);
|
|
|
+ responseEntity = ResultVo.error("内部异常:" + e.getMessage() + e.getLocalizedMessage());
|
|
|
} finally {
|
|
|
Date endDate = DateUtil.getCurrentDate();
|
|
|
if (dataFlow != null) {
|