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);