|  | @@ -157,6 +157,7 @@ public class UploadCompanyInfoAndProductController {
 | 
	
		
			
				|  |  |      @Autowired
 | 
	
		
			
				|  |  |      private UmsCompanyFileMapper umsCompanyFileMapper;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +    //供应商
 | 
	
		
			
				|  |  |      public void addCompanyImg(ForestPath forestPath, String companyName, Long companyId) {
 | 
	
		
			
				|  |  |          String path = forestPath.getPath();
 | 
	
		
			
				|  |  |          List<String> file = getFile(path);
 | 
	
	
		
			
				|  | @@ -177,7 +178,7 @@ public class UploadCompanyInfoAndProductController {
 | 
	
		
			
				|  |  |              } catch (Exception e) {
 | 
	
		
			
				|  |  |                  throw new RuntimeException("获取文件后缀出错!=======>" + split);
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  | -            imgName = imgName + "." + split[1];
 | 
	
		
			
				|  |  | +            imgName = imgName + "." + split[split.length-1];
 | 
	
		
			
				|  |  |              String filePath = path + "\\" + str;
 | 
	
		
			
				|  |  |              infoFile.setFileUrl(url + imgName);
 | 
	
		
			
				|  |  |              if (str.contains("公众号二维码")) {
 | 
	
	
		
			
				|  | @@ -284,7 +285,7 @@ public class UploadCompanyInfoAndProductController {
 | 
	
		
			
				|  |  |              } catch (Exception e) {
 | 
	
		
			
				|  |  |                  throw new RuntimeException("获取文件后缀出错!=======>" + split);
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  | -            String fileName = br + s + "." + split[1];
 | 
	
		
			
				|  |  | +            String fileName = br + s + "." + split[split.length-1];
 | 
	
		
			
				|  |  |              uploadFileUtil.uploadLocalFile(path + "\\" + oldFileName, fileName);
 | 
	
		
			
				|  |  |              if (i > 0) {
 | 
	
		
			
				|  |  |                  bu.append("," + url + fileName);
 | 
	
	
		
			
				|  | @@ -368,7 +369,7 @@ public class UploadCompanyInfoAndProductController {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | +    //首图
 | 
	
		
			
				|  |  |      public void updateFile(String path, Long along, String str) {
 | 
	
		
			
				|  |  |          String upPath = path + "\\" + str;
 | 
	
		
			
				|  |  |          String br = "0/2/" + along + "/";
 | 
	
	
		
			
				|  | @@ -385,7 +386,7 @@ public class UploadCompanyInfoAndProductController {
 | 
	
		
			
				|  |  |                  } catch (Exception e) {
 | 
	
		
			
				|  |  |                      throw new RuntimeException("获取文件后缀出错!=======>" + split);
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  | -                fs = fs + "." + split[1];
 | 
	
		
			
				|  |  | +                fs = fs + "." + split[split.length-1];
 | 
	
		
			
				|  |  |                  uploadFileUtil.uploadLocalFile(upPath + "\\" + s, fs);
 | 
	
		
			
				|  |  |                  if (s.contains("首图")) {
 | 
	
		
			
				|  |  |                      p.setPic(url + fs);
 |