Parcourir la source

fix error code

master
Binary Wang il y a 7 ans
Parent
révision
13e1c4b628
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. +2
    -2
      weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaMediaServiceImpl.java

+ 2
- 2
weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaMediaServiceImpl.java Voir le fichier

@@ -31,7 +31,7 @@ public class WxMaMediaServiceImpl implements WxMaMediaService {
try {
return this.uploadMedia(mediaType, FileUtils.createTmpFile(inputStream, UUID.randomUUID().toString(), fileType));
} catch (IOException e) {
throw new WxErrorException(WxError.newBuilder().setErrorMsg(e.getMessage()).build(), e);
throw new WxErrorException(WxError.builder().errorMsg(e.getMessage()).build(), e);
}
}

@@ -48,7 +48,7 @@ public class WxMaMediaServiceImpl implements WxMaMediaService {
.create(this.wxMaService.getRequestHttp(), Files.createTempDirectory("wxma").toFile());
return this.wxMaService.execute(executor, MEDIA_GET_URL, "media_id=" + mediaId);
} catch (IOException e) {
throw new WxErrorException(WxError.newBuilder().setErrorMsg(e.getMessage()).build(), e);
throw new WxErrorException(WxError.builder().errorMsg(e.getMessage()).build(), e);
}
}



Chargement…
Annuler
Enregistrer