mirror of
				https://gitee.com/binary/weixin-java-tools.git
				synced 2025-10-31 10:38:42 +08:00 
			
		
		
		
	fix error code
This commit is contained in:
		| @ -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); | ||||
|     } | ||||
|   } | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Binary Wang
					Binary Wang