Przeglądaj źródła

fix: 企业类型枚举值 ENTERPRISE 改为 COMPANY

- 微信支付 v3 buyer_information.type 只有 COMPANY 和 INDIVIDUAL

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
skyline 2 dni temu
rodzic
commit
74a6c00c25

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

@@ -119,7 +119,7 @@ public class WechatPayFapiaoService {
 
         var buyerInfo = new HashMap<String, Object>();
         buyerInfo.put("type", "ORGANIZATION".equals(invoice.getInvoiceType())
-                ? "ENTERPRISE" : "INDIVIDUAL");
+                ? "COMPANY" : "INDIVIDUAL");
         buyerInfo.put("name", invoice.getInvoiceTitle());
         if (invoice.getTaxId() != null && !invoice.getTaxId().isBlank()) {
             buyerInfo.put("taxpayer_id", invoice.getTaxId());