|
@@ -50,7 +50,7 @@ public class MerchantNoticeBiz implements CuspayBiz{
|
|
|
//记录通知状态
|
|
|
List<MerchNoti> noticeList = Lists.newArrayList();
|
|
|
|
|
|
- notis.forEach(noti->{
|
|
|
+ notis.forEach(noti -> {
|
|
|
|
|
|
if (noti.getNotifyUrl() == null) {
|
|
|
logger.error("商户通知回调接口为空");
|
|
@@ -70,7 +70,7 @@ public class MerchantNoticeBiz implements CuspayBiz{
|
|
|
|
|
|
//组装需要请求的参数
|
|
|
String jsonStr = createJsonByNoti(noti);
|
|
|
- logger.info("商户通知回调参数Parameters:"+ jsonStr);
|
|
|
+ logger.info("商户通知回调地址 => {} 商户通知回调参数 => {}", noti.getNotifyUrl(), jsonStr);
|
|
|
|
|
|
int counter = 0;
|
|
|
|
|
@@ -86,7 +86,7 @@ public class MerchantNoticeBiz implements CuspayBiz{
|
|
|
noti.setIsStoped(MerchNoticeDict.IsStopStatus.i_1.getItem());//停止通知
|
|
|
break;
|
|
|
}catch (IOException e) {
|
|
|
- logger.error("商户回调通知异常", e);
|
|
|
+ logger.error("商户回调通知异常: ", e);
|
|
|
noti.setNotiStatue(MerchNoticeDict.NoticeStatus.i_3.getItem()); //发送失败
|
|
|
noti.setIsStoped(MerchNoticeDict.IsStopStatus.i_1.getItem());
|
|
|
}
|
|
@@ -100,7 +100,7 @@ public class MerchantNoticeBiz implements CuspayBiz{
|
|
|
logger.error("更新商户通知数据失败" + noticeList);
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
- logger.error("更新商户通知数据失败", e);
|
|
|
+ logger.error("更新商户通知数据失败: ", e);
|
|
|
throw new RuntimeException("更新商户通知数据失败",e);
|
|
|
}
|
|
|
}
|