From d6d5f92f34f0d7ac4960983e9abccdd4d1f134fe Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Tue, 20 Jan 2026 13:06:47 +0800 Subject: [PATCH] Update weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/PayrollServiceImpl.java Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .../binarywang/wxpay/service/impl/PayrollServiceImpl.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/PayrollServiceImpl.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/PayrollServiceImpl.java index 17b92c3d0..85f7ee23d 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/PayrollServiceImpl.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/PayrollServiceImpl.java @@ -209,9 +209,7 @@ public class PayrollServiceImpl implements PayrollService { // 对敏感信息进行加密 if (request.getTransferDetailList() != null && !request.getTransferDetailList().isEmpty()) { for (PayrollTransferBatchesRequest.TransferDetail detail : request.getTransferDetailList()) { - if (StringUtils.isNotEmpty(detail.getUserName())) { - RsaCryptoUtil.encryptFields(detail, payService.getConfig().getVerifier().getValidCertificate()); - } + RsaCryptoUtil.encryptFields(detail, payService.getConfig().getVerifier().getValidCertificate()); } } String response = payService.postV3WithWechatpaySerial(url, GSON.toJson(request));