From ba246c99a793c40477e600b6fc5a3a4bbb7e6489 Mon Sep 17 00:00:00 2001 From: "wh.g" Date: Fri, 22 Nov 2024 10:36:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ruoyi/web/controller/system/SysOssController.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysOssController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysOssController.java index b3ddff3..a1a1af1 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysOssController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysOssController.java @@ -124,6 +124,8 @@ public class SysOssController extends BaseController { //filePath获取到的地址斜杠是“ \ ”的(单斜杠是特殊符号,得用双斜杠代替),得换成“ / ”才能访问到 //返回全路径图片地址 String returnPath = ("http://47.121.27.78:8008/upload/" + fileName).replace("\\", "/"); + //域名环境使用↓ + //String returnPath = ("https://www.haokunny.com/upload/" + fileName).replace("\\", "/"); //修改数据库 Long image = iSysImageService.uploadImage(fileName, returnPath); System.err.println("替换后:" + pathFan);