xhxu 3 лет назад
Родитель
Сommit
d881c3446f
1 измененных файлов: 15 добавлений и 14 удалений
  1. +15
    -14
      mallinkService/src/main/java/com/iformall/service/impl/TtCouponGoodsServiceImpl.java

+ 15
- 14
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());
}
}



Загрузка…
Отмена
Сохранить