|
|
@@ -499,6 +499,7 @@ public class WxPayServiceImpl implements WxPayService {
|
|
|
*/
|
|
|
@DS("db-miniapp")
|
|
|
@Override
|
|
|
+ @Transactional(rollbackFor = Exception.class)
|
|
|
public void wxRefund(long refundLogId) {
|
|
|
// 通过退款申请id获取退款申请记录
|
|
|
var refundLog = refundLogService.getById(refundLogId);
|
|
|
@@ -611,7 +612,7 @@ public class WxPayServiceImpl implements WxPayService {
|
|
|
return ResponseEntity.status(HttpStatus.OK).build();
|
|
|
} else {
|
|
|
// 退款失败
|
|
|
- LOGGER.error("微信退款失败,用户id:{},退款状态:{} \n 退款结果通知详情:{}", refundLog.getUserId(), refundNotification.getRefundStatus().name(), refundNotification);
|
|
|
+ LOGGER.error("微信退款失败,用户id:{},退款状态:{} ,退款结果通知详情:{}", refundLog.getUserId(), refundNotification.getRefundStatus().name(), refundNotification);
|
|
|
return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(Map.of("code", HttpStatus.INTERNAL_SERVER_ERROR, "message", "退款处理异常"));
|
|
|
}
|
|
|
} catch (ValidationException e) {
|