Skip to content

Commit 773d10a

Browse files
Copilotbinarywang
andcommitted
修复代码审查问题:统一错误消息格式和修正日期
Co-authored-by: binarywang <1343140+binarywang@users.noreply.github.com>
1 parent 426c5e9 commit 773d10a

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/PayrollTransferBatchesRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
* </pre>
2222
*
2323
* @author binarywang
24-
* created on 2026/01/19
24+
* created on 2025/01/19
2525
*/
2626
@Data
2727
@Builder

weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/payroll/PayrollTransferBatchesResult.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* </pre>
1818
*
1919
* @author binarywang
20-
* created on 2026/01/19
20+
* created on 2025/01/19
2121
*/
2222
@Data
2323
@NoArgsConstructor

weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/PayrollServiceImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ public PayrollTransferBatchesResult payrollCardTransferBatches(PayrollTransferBa
217217
}
218218
}
219219
} catch (IllegalBlockSizeException e) {
220-
throw new RuntimeException("Sensitive information encryption failed!", e);
220+
throw new RuntimeException("加密异常!", e);
221221
}
222222
String response = payService.postV3WithWechatpaySerial(url, GSON.toJson(request));
223223
return GSON.fromJson(response, PayrollTransferBatchesResult.class);

weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/PayrollServiceImplTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
import org.testng.annotations.Guice;
1515
import org.testng.annotations.Test;
1616

17+
import java.util.Collections;
18+
1719
/**
1820
* 微工卡(服务商)
1921
*
@@ -136,7 +138,7 @@ public void payrollCardTransferBatches() throws WxPayException {
136138
.batchRemark("2019年1月深圳分部报销单")
137139
.totalAmount(200000L)
138140
.totalNum(1)
139-
.transferDetailList(java.util.Collections.singletonList(
141+
.transferDetailList(Collections.singletonList(
140142
PayrollTransferBatchesRequest.TransferDetail.builder()
141143
.outDetailNo("x23zy545Bd5436" + System.currentTimeMillis())
142144
.transferAmount(200000L)

0 commit comments

Comments
 (0)