skyline 4 mesiacov pred
rodič
commit
44da885239

+ 0 - 1
entity/src/main/java/com/kym/entity/platform/PlatformPolicyInfo.java

@@ -39,7 +39,6 @@ public class PlatformPolicyInfo {
 
     @JSONCreator
     PlatformPolicyInfo(@JSONField(name = "StartTime", serialize = false) String startTime) {
-        System.out.println("startTime = " + startTime);
         this.startTime = LocalTime.parse(startTime, DateTimeFormatter.ofPattern("HHmmss"));
     }
 

+ 2 - 1
service/src/main/java/com/kym/service/wechat/impl/WxPayServiceImpl.java

@@ -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) {