Commit 629283d9 authored by m1991's avatar m1991

资讯模块——邀请码过滤特殊字符功能功能修复

parent 0d12adf5
...@@ -215,11 +215,11 @@ public class UploadServiceImpl implements UploadService { ...@@ -215,11 +215,11 @@ public class UploadServiceImpl implements UploadService {
} }
//设置文件存储路径,可以存放在你想要指定的路径里面 //设置文件存储路径,可以存放在你想要指定的路径里面
String Path = "/upload/"; String Path = "/upload/";
String Path1 = "/upload/"; //上传图片存放位置 String Path1 = "/opt/upload/video/"; //上传图片存放位置
zxUrl += Path1 + fileName + ","; zxUrl += Path + fileName + ",";
String UrlzxPath ="/upload/"; String UrlzxPath ="/opt/upload/video/";
xxurl=UrlzxPath+ fileName; xxurl=UrlzxPath+ fileName;
if (FileUtils.upload(file, Path, fileName)) { if (FileUtils.upload(file, Path1, fileName)) {
//文件存放的相对路径(一般存放在数据库用于img标签的src) //文件存放的相对路径(一般存放在数据库用于img标签的src)
String relativePath = "用于判断是否图片上传成功,返回值有:" + fileName; String relativePath = "用于判断是否图片上传成功,返回值有:" + fileName;
result.put("relativePath", relativePath);//前端根据是否存在该字段来判断上传是否成功 result.put("relativePath", relativePath);//前端根据是否存在该字段来判断上传是否成功
......
...@@ -210,5 +210,6 @@ ...@@ -210,5 +210,6 @@
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:ffmpeg:macosx-x86_64:4.0.2-1.4.3" level="project" /> <orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:ffmpeg:macosx-x86_64:4.0.2-1.4.3" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:ffmpeg:windows-x86:4.0.2-1.4.3" level="project" /> <orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:ffmpeg:windows-x86:4.0.2-1.4.3" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:ffmpeg:windows-x86_64:4.0.2-1.4.3" level="project" /> <orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:ffmpeg:windows-x86_64:4.0.2-1.4.3" level="project" />
<orderEntry type="library" name="Maven: net.coobird:thumbnailator:0.4.8" level="project" />
</component> </component>
</module> </module>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment