Commit 2280a4778cd2bb467a6cdd6064eb8939a0230cd7

Authored by fengliang
1 parent d2c3a7f0

update:修改异常返回内容

etrade-order/src/main/java/com/diligrp/etrade/order/controller/OrderManagerController.java
... ... @@ -60,6 +60,9 @@ public class OrderManagerController {
60 60  
61 61 }catch (PlatformServiceException pe) {
62 62 LOGGER.warn("服务异常{}:{}",pe.getCode(), pe.getMessage());
  63 + return Message.failure(pe.getMessage());
  64 + }catch (Exception e){
  65 + LOGGER.error("退款异常",e);
63 66 return Message.failure("服务暂时不在线,请稍后");
64 67 }
65 68 }
... ... @@ -81,6 +84,9 @@ public class OrderManagerController {
81 84 }
82 85 }catch (PlatformServiceException pe) {
83 86 LOGGER.warn("服务异常{}:{}",pe.getCode(), pe.getMessage());
  87 + return Message.failure(pe.getMessage());
  88 + }catch (Exception e){
  89 + LOGGER.error("退款异常",e);
84 90 return Message.failure("服务暂时不在线,请稍后");
85 91 }
86 92 }
... ... @@ -115,6 +121,9 @@ public class OrderManagerController {
115 121 return Message.success(orderRefundList);
116 122 }catch (PlatformServiceException pe) {
117 123 LOGGER.warn("服务异常{}:{}",pe.getCode(), pe.getMessage());
  124 + return Message.failure(pe.getMessage());
  125 + }catch (Exception e){
  126 + LOGGER.error("退款异常",e);
118 127 return Message.failure("服务暂时不在线,请稍后");
119 128 }
120 129 }
... ...