From d881c3446f0d2a46b5e2d7468406efad377c635c Mon Sep 17 00:00:00 2001 From: xhxu Date: Wed, 2 Nov 2022 20:54:59 +0800 Subject: [PATCH] //error --- .../impl/TtCouponGoodsServiceImpl.java | 29 ++++++++++--------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/mallinkService/src/main/java/com/iformall/service/impl/TtCouponGoodsServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/TtCouponGoodsServiceImpl.java index 3e6415795..517b1a754 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/TtCouponGoodsServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/TtCouponGoodsServiceImpl.java @@ -255,7 +255,7 @@ public class TtCouponGoodsServiceImpl implements TtCouponGoodsService { return new ResultData(); } catch (WxErrorException e) { - throw new Exception(e.getMessage()); + throw new Exception(e.getError().getErrorMsg()); // logger.error(e.getMessage()); // return new ResultData(ErrorCode.SYS_SERVER_ERROR.getCode(),e.getMessage()); } catch (Exception e){ @@ -300,7 +300,7 @@ public class TtCouponGoodsServiceImpl implements TtCouponGoodsService { } } catch (WxErrorException e) { e.printStackTrace(); - return new ResultData(ErrorCode.SYS_PARAMETER_ERROR.getCode(),e.getMessage()); + return new ResultData(ErrorCode.SYS_PARAMETER_ERROR.getCode(),e.getError().getErrorMsg()); } } @@ -334,7 +334,7 @@ public class TtCouponGoodsServiceImpl implements TtCouponGoodsService { } } catch (WxErrorException e) { e.printStackTrace(); - return new ResultData(ErrorCode.SYS_PARAMETER_ERROR.getCode(),e.getMessage()); + return new ResultData(ErrorCode.SYS_PARAMETER_ERROR.getCode(),e.getError().getErrorMsg()); } } @@ -374,7 +374,7 @@ public class TtCouponGoodsServiceImpl implements TtCouponGoodsService { } catch (WxErrorException e) { e.printStackTrace(); - return new ResultData(ErrorCode.SYS_PARAMETER_ERROR.getCode(),e.getMessage()); + return new ResultData(ErrorCode.SYS_PARAMETER_ERROR.getCode(),e.getError().getErrorMsg()); } } @@ -399,7 +399,7 @@ public class TtCouponGoodsServiceImpl implements TtCouponGoodsService { } catch (WxErrorException e) { e.printStackTrace(); - return new ResultData(ErrorCode.SYS_PARAMETER_ERROR.getCode(),e.getMessage()); + return new ResultData(ErrorCode.SYS_PARAMETER_ERROR.getCode(),e.getError().getErrorMsg()); } } @@ -425,7 +425,7 @@ public class TtCouponGoodsServiceImpl implements TtCouponGoodsService { } catch (WxErrorException e) { e.printStackTrace(); - return new ResultData(ErrorCode.SYS_PARAMETER_ERROR.getCode(),e.getMessage()); + return new ResultData(ErrorCode.SYS_PARAMETER_ERROR.getCode(),e.getError().getErrorMsg()); } } @@ -522,7 +522,7 @@ public class TtCouponGoodsServiceImpl implements TtCouponGoodsService { return new ResultData(poiPlanPage); } catch (WxErrorException e) { e.printStackTrace(); - return new ResultData(ErrorCode.SYS_SERVER_ERROR.getCode(),e.getMessage()); + return new ResultData(ErrorCode.SYS_SERVER_ERROR.getCode(),e.getError().getErrorMsg()); } } @@ -538,7 +538,7 @@ public class TtCouponGoodsServiceImpl implements TtCouponGoodsService { return new ResultData(poiOrientedPlanPage); } catch (WxErrorException e) { e.printStackTrace(); - return new ResultData(ErrorCode.SYS_SERVER_ERROR.getCode(),e.getMessage()); + return new ResultData(ErrorCode.SYS_SERVER_ERROR.getCode(),e.getError().getErrorMsg()); } } @@ -587,7 +587,7 @@ public class TtCouponGoodsServiceImpl implements TtCouponGoodsService { } } catch (WxErrorException e) { e.printStackTrace(); - return new ResultData(ErrorCode.SYS_SERVER_ERROR.getCode(),e.getMessage()); + return new ResultData(ErrorCode.SYS_SERVER_ERROR.getCode(),e.getError().getErrorMsg()); } catch (MallinkException e){ return new ResultData(e.getErrorCode(),e.getMessage()); } @@ -672,7 +672,7 @@ public class TtCouponGoodsServiceImpl implements TtCouponGoodsService { } catch (WxErrorException e) { e.printStackTrace(); - return new ResultData(ErrorCode.SYS_SERVER_ERROR.getCode(),e.getMessage()); + return new ResultData(ErrorCode.SYS_SERVER_ERROR.getCode(),e.getError().getErrorMsg()); } } @@ -716,7 +716,7 @@ public class TtCouponGoodsServiceImpl implements TtCouponGoodsService { return new ResultData(); }catch (WxErrorException e) { e.printStackTrace(); - return new ResultData(ErrorCode.SYS_SERVER_ERROR.getCode(),e.getMessage()); + return new ResultData(ErrorCode.SYS_SERVER_ERROR.getCode(),e.getError().getErrorMsg()); } } @@ -745,7 +745,7 @@ public class TtCouponGoodsServiceImpl implements TtCouponGoodsService { return new ResultData(); }catch (WxErrorException e) { e.printStackTrace(); - return new ResultData(ErrorCode.SYS_SERVER_ERROR.getCode(),e.getMessage()); + return new ResultData(ErrorCode.SYS_SERVER_ERROR.getCode(),e.getError().getErrorMsg()); } } @@ -782,6 +782,7 @@ public class TtCouponGoodsServiceImpl implements TtCouponGoodsService { delDouyinIdList.add(douyinId); } catch (WxErrorException e) { e.printStackTrace(); + logger.error("定向计划删除达人失败{}"+e.getMessage()); logger.error("定向计划删除达人失败"+oldTakeRate.getId()+"del--"+douyinId); } } @@ -822,7 +823,7 @@ public class TtCouponGoodsServiceImpl implements TtCouponGoodsService { } } catch (WxErrorException e) { e.printStackTrace(); - return new ResultData(ErrorCode.SYS_SERVER_ERROR.getCode(),e.getMessage()); + return new ResultData(ErrorCode.SYS_SERVER_ERROR.getCode(),e.getError().getErrorMsg()); } } @@ -845,7 +846,7 @@ public class TtCouponGoodsServiceImpl implements TtCouponGoodsService { } } catch (WxErrorException e) { e.printStackTrace(); - return new ResultData(ErrorCode.SYS_SERVER_ERROR.getCode(),e.getMessage()); + return new ResultData(ErrorCode.SYS_SERVER_ERROR.getCode(),e.getError().getErrorMsg()); } }