更新
This commit is contained in:
parent
417ce21c39
commit
ba246c99a7
|
@ -124,6 +124,8 @@ public class SysOssController extends BaseController {
|
||||||
//filePath获取到的地址斜杠是“ \ ”的(单斜杠是特殊符号,得用双斜杠代替),得换成“ / ”才能访问到
|
//filePath获取到的地址斜杠是“ \ ”的(单斜杠是特殊符号,得用双斜杠代替),得换成“ / ”才能访问到
|
||||||
//返回全路径图片地址
|
//返回全路径图片地址
|
||||||
String returnPath = ("http://47.121.27.78:8008/upload/" + fileName).replace("\\", "/");
|
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);
|
Long image = iSysImageService.uploadImage(fileName, returnPath);
|
||||||
System.err.println("替换后:" + pathFan);
|
System.err.println("替换后:" + pathFan);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user