|  | @ -180,21 +180,16 @@ public class PatientArchivesController extends WeixinBaseController {
 | 
	
		
			
				|  |  |     @RequestMapping(value = "/event/uploadImg", produces = "application/json;charset=UTF-8", method = RequestMethod.POST)
 | 
	
		
			
				|  |  |     @ResponseBody
 | 
	
		
			
				|  |  |     @ApiOperation("单张上传图片")
 | 
	
		
			
				|  |  |     public String uploadImg(@ApiParam(name="mediaId",value="微信图片标识",defaultValue = "")
 | 
	
		
			
				|  |  |                             @RequestParam(value="mediaId",required = true) String mediaId,
 | 
	
		
			
				|  |  |                             @ApiParam(name="fileExt",value="文件格式后缀",defaultValue = "")
 | 
	
		
			
				|  |  |                             @RequestParam(value="fileExt",required = false) String fileExt)
 | 
	
		
			
				|  |  |     public String uploadImg(@ApiParam(name="mediaId",value="微信图片标识",defaultValue = "wL1vfE9g1fiRCl5xd-Xotl1XycWQ9mwigDLUv-S0Kmde-pXNrlySKbf5RM5SwwFl")
 | 
	
		
			
				|  |  |                             @RequestParam(value="mediaId",required = true) String mediaId)
 | 
	
		
			
				|  |  |     {
 | 
	
		
			
				|  |  |         try {
 | 
	
		
			
				|  |  |             String url ="";
 | 
	
		
			
				|  |  |             FastDFSUtil fastDFSUtil = new FastDFSConfig().fastDFSUtil();
 | 
	
		
			
				|  |  |             InputStream wxImg = getInputStream(mediaId);
 | 
	
		
			
				|  |  |             if(StringUtils.isEmpty(fileExt))
 | 
	
		
			
				|  |  |             {
 | 
	
		
			
				|  |  |                 fileExt="jpg";
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |             ObjectNode result = fastDFSUtil.upload(wxImg, fileExt, "");
 | 
	
		
			
				|  |  |             ObjectNode result = fastDFSUtil.upload(wxImg, "jpg", "");
 | 
	
		
			
				|  |  |             wxImg.close();
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |             if (result != null) {
 | 
	
		
			
				|  |  |                 url = result.get("fileUrl").toString().replaceAll("\"", "");
 | 
	
		
			
				|  |  |             }
 |