Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gdtel-gztel-school-center
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴学德
gdtel-gztel-school-center
Commits
d3eb14c6
Commit
d3eb14c6
authored
Feb 23, 2021
by
罗承锋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整图片路径
parent
51bfb1cd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
common/src/main/java/com/winsun/utils/PicturesUtil.java
+2
-1
No files found.
common/src/main/java/com/winsun/utils/PicturesUtil.java
View file @
d3eb14c6
...
...
@@ -55,11 +55,12 @@ public class PicturesUtil {
if
(!
multipartFiles
[
i
].
isEmpty
())
{
String
base64Data
=
multipartFiles
[
i
].
split
(
","
)[
1
];
String
houzhui
=
multipartFiles
[
i
].
split
(
","
)[
0
].
split
(
"/"
)[
1
].
split
(
";"
)[
0
];
String
filePath1
=
FilePath
.
PATH
.
getValue
()+
pathType
+
"/"
+
yymmdd
+
"/"
+
orderNum
;
String
filePath1
=
UPLOAD_PRE
+
FilePath
.
PATH
.
getValue
()+
pathType
+
"/"
+
yymmdd
+
"/"
+
orderNum
;
File
dir
=
new
File
(
filePath1
);
if
(!
dir
.
exists
())
{
dir
.
mkdirs
();
}
//enclosure/images/idCard/temp/年/月/日/name.jpeg
filePath
=
UPLOAD_PRE
+
FilePath
.
PATH
.
getValue
()+
pathType
+
"/"
+
yymmdd
+
"/"
+
orderNum
+
"/"
+
(
new
Date
()).
getTime
()
+
"."
+
PicturesUtil
.
checkSuffix
(
houzhui
);
...
...
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