|
|
@@ -28,6 +28,7 @@ public class WechatPayFapiaoService {
|
|
|
|
|
|
static {
|
|
|
JSON_HEADERS = new HttpHeaders();
|
|
|
+ JSON_HEADERS.addHeader("Accept", "application/json");
|
|
|
JSON_HEADERS.addHeader("Content-Type", "application/json");
|
|
|
}
|
|
|
|
|
|
@@ -117,7 +118,7 @@ public class WechatPayFapiaoService {
|
|
|
}
|
|
|
|
|
|
var buyerInfo = new HashMap<String, Object>();
|
|
|
- buyerInfo.put("type", invoice.getInvoiceType() != null && invoice.getInvoiceType().equals("企业")
|
|
|
+ buyerInfo.put("type", "ORGANIZATION".equals(invoice.getInvoiceType())
|
|
|
? "ENTERPRISE" : "INDIVIDUAL");
|
|
|
buyerInfo.put("name", invoice.getInvoiceTitle());
|
|
|
if (invoice.getTaxId() != null && !invoice.getTaxId().isBlank()) {
|