This commit is contained in:
郭文豪 2024-11-22 10:36:38 +08:00
parent 417ce21c39
commit ba246c99a7

View File

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