skyline 2 년 전
부모
커밋
9281d1d75c
1개의 변경된 파일3개의 추가작업 그리고 5개의 파일을 삭제
  1. 3 5
      service/src/main/java/com/kym/service/wechat/impl/WxPayServiceImpl.java

+ 3 - 5
service/src/main/java/com/kym/service/wechat/impl/WxPayServiceImpl.java

@@ -860,11 +860,9 @@ public class WxPayServiceImpl implements WxPayService {
         Notification notification = JSONObject.parseObject(requestParam.getBody(), Notification.class);
         switch (notification.getEventType()) {
             // 发票抬头填写完成
-            case "FAPIAO.USER_APPLIED":
-                titleWriteNotice(notifyRes);
-                // 发票开具结果
-            case "FAPIAO.ISSUED":
-                wxInvoiceNotify(notifyRes);
+            case "FAPIAO.USER_APPLIED" -> titleWriteNotice(notifyRes);
+            // 发票开具结果
+            case "FAPIAO.ISSUED" -> wxInvoiceNotify(notifyRes);
         }
     }