소스 검색

会员管理代码

wwh 1 주 전
부모
커밋
0461aadb89
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      baqing-shop/src/test/java/com/ruoyi/web/modules/pay/support/WeChatPaySupportTest.java

+ 2 - 2
baqing-shop/src/test/java/com/ruoyi/web/modules/pay/support/WeChatPaySupportTest.java

@@ -57,8 +57,8 @@ class WeChatPaySupportTest
57 57
 
58 58
         Path privatePath = tempDir.resolve("private.pem");
59 59
         Path publicPath = tempDir.resolve("public.pem");
60
-        Files.writeString(privatePath, toPkcs8Pem(privateKey), StandardCharsets.UTF_8);
61
-        Files.writeString(publicPath, toPublicPem(publicKey), StandardCharsets.UTF_8);
60
+        Files.write(privatePath, toPkcs8Pem(privateKey).getBytes(StandardCharsets.UTF_8));
61
+        Files.write(publicPath, toPublicPem(publicKey).getBytes(StandardCharsets.UTF_8));
62 62
 
63 63
         payProperties = new WeChatPayProperties();
64 64
         payProperties.setEnabled(true);