|  | @ -541,23 +541,53 @@ public class FileUploadController extends BaseController {
 | 
	
		
			
				|  |  |     @ApiOperation("编辑文章上传图片")
 | 
	
		
			
				|  |  |     @ResponseBody
 | 
	
		
			
				|  |  |     public String pushArticleList(@ApiParam(name = "file", value = "文件", required = true)
 | 
	
		
			
				|  |  |                                   @RequestParam(value = "file", required = true) MultipartFile file){
 | 
	
		
			
				|  |  |         try {
 | 
	
		
			
				|  |  |             InputStream inputStream  = file.getInputStream();
 | 
	
		
			
				|  |  |             String fileName = file.getOriginalFilename().substring(0,file.getOriginalFilename().lastIndexOf("."));
 | 
	
		
			
				|  |  |             ObjectNode imgNode = FastDFSUtil.upload(inputStream,"png",fileName);
 | 
	
		
			
				|  |  |             String fileUrl = imgNode.get("groupName").toString().replaceAll("\"","")
 | 
	
		
			
				|  |  |                     + "/" + imgNode.get("remoteFileName").toString().replaceAll("\"","");
 | 
	
		
			
				|  |  |             if(!isneiwang){
 | 
	
		
			
				|  |  |                 fileUrl=fastdfs_file_url+fileUrl;
 | 
	
		
			
				|  |  |                                   @RequestParam(value = "file", required = true) MultipartFile file,
 | 
	
		
			
				|  |  |                                   HttpServletRequest request, HttpServletResponse response){
 | 
	
		
			
				|  |  |         if (isneiwang) {
 | 
	
		
			
				|  |  |             // 圖片列表
 | 
	
		
			
				|  |  |             List<String> tempPaths = new ArrayList<String>();
 | 
	
		
			
				|  |  |             try {
 | 
	
		
			
				|  |  |                 MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request;
 | 
	
		
			
				|  |  |                 Map<String, MultipartFile> fileMap = multipartRequest.getFileMap();
 | 
	
		
			
				|  |  |                 for (Map.Entry<String, MultipartFile> entity : fileMap.entrySet()) {
 | 
	
		
			
				|  |  |                     // 上传文件
 | 
	
		
			
				|  |  |                     MultipartFile mf = entity.getValue();
 | 
	
		
			
				|  |  |                     InputStream inputStream  = mf.getInputStream();
 | 
	
		
			
				|  |  |                     String fileName = mf.getOriginalFilename().substring(0,mf.getOriginalFilename().lastIndexOf("."));
 | 
	
		
			
				|  |  |                     ObjectNode imgNode = FastDFSUtil.upload(inputStream,"png",fileName);
 | 
	
		
			
				|  |  |                     com.alibaba.fastjson.JSONObject json = com.alibaba.fastjson.JSONObject.parseObject(imgNode.toString());
 | 
	
		
			
				|  |  |                     tempPaths.add(json.getString("fid"));
 | 
	
		
			
				|  |  |                 }
 | 
	
		
			
				|  |  |                 String urls = "";
 | 
	
		
			
				|  |  |                 for (String image : tempPaths) {
 | 
	
		
			
				|  |  |                     if (urls.length() == 0) {
 | 
	
		
			
				|  |  |                         urls = image;
 | 
	
		
			
				|  |  |                     } else {
 | 
	
		
			
				|  |  |                         urls += "," + image;
 | 
	
		
			
				|  |  |                     }
 | 
	
		
			
				|  |  |                 }
 | 
	
		
			
				|  |  |                 JSONObject json = new JSONObject();
 | 
	
		
			
				|  |  |                 json.put("status", 200);
 | 
	
		
			
				|  |  |                 json.put("msg", "上传成功");
 | 
	
		
			
				|  |  |                 json.put("data", urls);
 | 
	
		
			
				|  |  |                 logger.info
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |                         ("图片上传:" + json.toString());
 | 
	
		
			
				|  |  |                 return json.toString();
 | 
	
		
			
				|  |  |             } catch (Exception e) {
 | 
	
		
			
				|  |  |                 error(e);
 | 
	
		
			
				|  |  |                 return error(-1, "上传失败");
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |             return write(200,"上传成功!","data",fileUrl);
 | 
	
		
			
				|  |  |         }catch (Exception e) {
 | 
	
		
			
				|  |  |             e.printStackTrace();
 | 
	
		
			
				|  |  |             return error(-1,"失败!");
 | 
	
		
			
				|  |  |         } else {
 | 
	
		
			
				|  |  |             String result  = CommonUtil.toNeiWang(request, response);
 | 
	
		
			
				|  |  |             logger.info
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |                     ("fastDFSImag reslt :" + result);
 | 
	
		
			
				|  |  |             return CommonUtil.toNeiWang(request, response);
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     /**
 | 
	
		
			
				|  |  |      * 图片上传
 | 
	
		
			
				|  |  |      *
 |