|  | @ -673,6 +673,7 @@ public class ImService {
 | 
												
													
														
															|  | 		}
 |  | 		}
 | 
												
													
														
															|  | 		InputStream is = null;
 |  | 		InputStream is = null;
 | 
												
													
														
															|  | 		String url = "http://file.api.weixin.qq.com/cgi-bin/media/get?access_token=" + accessToken + "&media_id=" + mediaId;
 |  | 		String url = "http://file.api.weixin.qq.com/cgi-bin/media/get?access_token=" + accessToken + "&media_id=" + mediaId;
 | 
												
													
														
															|  | 
 |  | 		logger.info("media/get"+url);
 | 
												
													
														
															|  | 		try {
 |  | 		try {
 | 
												
													
														
															|  | 			URL urlGet = new URL(url);
 |  | 			URL urlGet = new URL(url);
 | 
												
													
														
															|  | 			HttpURLConnection http = (HttpURLConnection) urlGet.openConnection();
 |  | 			HttpURLConnection http = (HttpURLConnection) urlGet.openConnection();
 | 
												
											
												
													
														
															|  | @ -686,6 +687,7 @@ public class ImService {
 | 
												
													
														
															|  | 			// 获取文件转化为byte流
 |  | 			// 获取文件转化为byte流
 | 
												
													
														
															|  | 			is = http.getInputStream();
 |  | 			is = http.getInputStream();
 | 
												
													
														
															|  | 		} catch (Exception e) {
 |  | 		} catch (Exception e) {
 | 
												
													
														
															|  | 
 |  | 			logger.info(e.getMessage());
 | 
												
													
														
															|  | 			e.printStackTrace();
 |  | 			e.printStackTrace();
 | 
												
													
														
															|  | 		}
 |  | 		}
 | 
												
													
														
															|  | 		return is;
 |  | 		return is;
 |