Quellcode durchsuchen

修改预览地址

humuyu vor 3 Jahren
Ursprung
Commit
68587d6d35

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

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

+ 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/image/
+    preview: https://fqgz.ntgzc.com
 tencent:
   client:
     webankAppId: TIDAdW8e