Skip to content

Commit 0e23226

Browse files
binarywangCopilot
andauthored
Update weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/MerchantMediaServiceImpl.java
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 32e7de5 commit 0e23226

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public VideoUploadResult videoUploadV3(File videoFile) throws WxPayException, IO
7777
@Override
7878
public VideoUploadResult videoUploadV3(InputStream inputStream, String fileName) throws WxPayException, IOException {
7979
String url = String.format("%s/v3/merchant/media/video_upload", this.payService.getPayBaseUrl());
80-
try(ByteArrayOutputStream bos = new ByteArrayOutputStream()) {
80+
try (ByteArrayOutputStream bos = new ByteArrayOutputStream()) {
8181
byte[] buffer = new byte[2048];
8282
int len;
8383
while ((len = inputStream.read(buffer)) > -1) {

0 commit comments

Comments
 (0)