|  | @@ -1,7 +1,7 @@
 | 
											
												
													
														|  |  package com.miniframe.tools;
 |  |  package com.miniframe.tools;
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | -import com.alibaba.nacos.shaded.com.google.common.io.Resources;
 |  | 
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  |  import com.miniframe.constant.MFConstant;
 |  |  import com.miniframe.constant.MFConstant;
 | 
											
												
													
														|  |  import com.miniframe.core.exception.BusinessException;
 |  |  import com.miniframe.core.exception.BusinessException;
 | 
											
												
													
														|  |  import com.miniframe.core.ext.UtilTools;
 |  |  import com.miniframe.core.ext.UtilTools;
 | 
											
										
											
												
													
														|  | @@ -417,18 +417,18 @@ public class XIFileUtils {
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |          return url.substring(url.lastIndexOf("/") + 1);
 |  |          return url.substring(url.lastIndexOf("/") + 1);
 | 
											
												
													
														|  |      }
 |  |      }
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  | -    public static byte[] getResourceFileBytes(String resourcePath) throws Exception {
 |  | 
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  | -        byte[] fileBytes = null;
 |  | 
 | 
											
												
													
														|  | -        try {
 |  | 
 | 
											
												
													
														|  | -            fileBytes = IOUtils.toByteArray((BufferedInputStream) Resources.getResource(resourcePath).getContent());
 |  | 
 | 
											
												
													
														|  | -        } catch (IOException e) {
 |  | 
 | 
											
												
													
														|  | -            throw new Exception("get file by path err : " + e.getMessage());
 |  | 
 | 
											
												
													
														|  | -        }
 |  | 
 | 
											
												
													
														|  | -        return fileBytes;
 |  | 
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  | -    }
 |  | 
 | 
											
												
													
														|  | 
 |  | +//
 | 
											
												
													
														|  | 
 |  | +//    public static byte[] getResourceFileBytes(String resourcePath) throws Exception {
 | 
											
												
													
														|  | 
 |  | +//
 | 
											
												
													
														|  | 
 |  | +//        byte[] fileBytes = null;
 | 
											
												
													
														|  | 
 |  | +//        try {
 | 
											
												
													
														|  | 
 |  | +//            fileBytes = IOUtils.toByteArray((BufferedInputStream) Resources.getResource(resourcePath).getContent());
 | 
											
												
													
														|  | 
 |  | +//        } catch (IOException e) {
 | 
											
												
													
														|  | 
 |  | +//            throw new Exception("get file by path err : " + e.getMessage());
 | 
											
												
													
														|  | 
 |  | +//        }
 | 
											
												
													
														|  | 
 |  | +//        return fileBytes;
 | 
											
												
													
														|  | 
 |  | +//
 | 
											
												
													
														|  | 
 |  | +//    }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |      public static byte[] getFileBytes(String filePath) throws Exception {
 |  |      public static byte[] getFileBytes(String filePath) throws Exception {
 | 
											
												
													
														|  |          byte[] fileBytes = null;
 |  |          byte[] fileBytes = null;
 |