记得上下班打卡 | git大法好,push需谨慎

Commit 40d51b5a authored by zhangguobing's avatar zhangguobing

~api:券商品业务-完善异常处理;

parent cdc59ea7
...@@ -194,6 +194,10 @@ public class GoblinOrderServiceImpl implements IGoblinOrderService { ...@@ -194,6 +194,10 @@ public class GoblinOrderServiceImpl implements IGoblinOrderService {
if (params.size() > 0) { if (params.size() > 0) {
orderUtils.backStoreCoupon(params); orderUtils.backStoreCoupon(params);
} }
if (e instanceof LiquidnetServiceException) {
LiquidnetServiceException lsEx = (LiquidnetServiceException) e;
return ResponseDto.failure(lsEx.getCode(), lsEx.getMessage());
}
if (e.getMessage() == null) { if (e.getMessage() == null) {
return ResponseDto.failure(ErrorMapping.get("20018"));//乱七八糟异常 return ResponseDto.failure(ErrorMapping.get("20018"));//乱七八糟异常
} else if (e.getMessage().equals("平台券不可用")) { } else if (e.getMessage().equals("平台券不可用")) {
......
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