Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
D
data-server
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
licc
data-server
Commits
629283d9
Commit
629283d9
authored
Mar 23, 2021
by
m1991
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
资讯模块——邀请码过滤特殊字符功能功能修复
parent
0d12adf5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
UploadServiceImpl.java
...java/cn/wisenergy/service/app/impl/UploadServiceImpl.java
+4
-4
wisenergy-service.iml
wisenergy-service/wisenergy-service.iml
+1
-0
No files found.
wisenergy-service/src/main/java/cn/wisenergy/service/app/impl/UploadServiceImpl.java
View file @
629283d9
...
...
@@ -215,11 +215,11 @@ public class UploadServiceImpl implements UploadService {
}
//设置文件存储路径,可以存放在你想要指定的路径里面
String
Path
=
"/upload/"
;
String
Path1
=
"/
upload
/"
;
//上传图片存放位置
zxUrl
+=
Path
1
+
fileName
+
","
;
String
UrlzxPath
=
"/
upload
/"
;
String
Path1
=
"/
opt/upload/video
/"
;
//上传图片存放位置
zxUrl
+=
Path
+
fileName
+
","
;
String
UrlzxPath
=
"/
opt/upload/video
/"
;
xxurl
=
UrlzxPath
+
fileName
;
if
(
FileUtils
.
upload
(
file
,
Path
,
fileName
))
{
if
(
FileUtils
.
upload
(
file
,
Path
1
,
fileName
))
{
//文件存放的相对路径(一般存放在数据库用于img标签的src)
String
relativePath
=
"用于判断是否图片上传成功,返回值有:"
+
fileName
;
result
.
put
(
"relativePath"
,
relativePath
);
//前端根据是否存在该字段来判断上传是否成功
...
...
wisenergy-service/wisenergy-service.iml
View file @
629283d9
...
...
@@ -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: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: net.coobird:thumbnailator:0.4.8"
level=
"project"
/>
</component>
</module>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment