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
0d12adf5
Commit
0d12adf5
authored
Mar 23, 2021
by
m1991
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
资讯模块——邀请码过滤特殊字符功能功能修复
parent
d3058ec5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
UploadServiceImpl.java
...java/cn/wisenergy/service/app/impl/UploadServiceImpl.java
+2
-2
No files found.
wisenergy-service/src/main/java/cn/wisenergy/service/app/impl/UploadServiceImpl.java
View file @
0d12adf5
...
...
@@ -214,10 +214,10 @@ public class UploadServiceImpl implements UploadService {
fileName
=
"1"
+
UUID
.
randomUUID
()
+
fileName1
+
".jpg"
;
//文件新名称
}
//设置文件存储路径,可以存放在你想要指定的路径里面
String
Path
=
"/
opt/upload/video
/"
;
String
Path
=
"/
upload
/"
;
String
Path1
=
"/upload/"
;
//上传图片存放位置
zxUrl
+=
Path1
+
fileName
+
","
;
String
UrlzxPath
=
"/
opt/upload/video
/"
;
String
UrlzxPath
=
"/
upload
/"
;
xxurl
=
UrlzxPath
+
fileName
;
if
(
FileUtils
.
upload
(
file
,
Path
,
fileName
))
{
//文件存放的相对路径(一般存放在数据库用于img标签的src)
...
...
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