소스 검색

修改图片显示

humuyu 3 년 전
부모
커밋
ab4e2ba965

+ 2 - 2
eladmin-system/src/main/java/me/zhengjie/base/file/MinioFileHandle.java

@@ -134,8 +134,8 @@ public class MinioFileHandle extends AbstractFileHandle {
 			if (!uploadPath.endsWith("/")) {
 				uploadPath = uploadPath + "/";
 			}
-			filePath = uploadPath + filePath;
-			FileUtils.writeByteArrayToFile(new File(filePath), b);
+			String transferFilePath = uploadPath + filePath;
+			FileUtils.writeByteArrayToFile(new File(transferFilePath), b);
 			return appMinioPreview + filePath;
 		} catch (Exception e) {
 			log.error("图片预览失败:" + e.getLocalizedMessage());

+ 1 - 1
eladmin-system/src/main/resources/config/application-nt.yml

@@ -168,7 +168,7 @@ app:
     secretkey: ntgzc123@!p
     url: http://127.0.0.1:9000
     bucketName: fqgz
-    preview: https://fqgz.ntgzc.com
+    preview: https://fqgz.ntgzc.com/image/
 tencent:
   client:
     webankAppId: TIDAdW8e