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
2c26232b
Commit
2c26232b
authored
Mar 18, 2020
by
黄森林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
二维码bug修復
parent
bf04a044
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
common/src/main/java/com/winsun/utils/PicturesUtil.java
+5
-6
No files found.
common/src/main/java/com/winsun/utils/PicturesUtil.java
View file @
2c26232b
...
...
@@ -38,15 +38,13 @@ public class PicturesUtil {
if
(!
multipartFiles
[
i
].
isEmpty
())
{
String
base64Data
=
multipartFiles
[
i
].
split
(
","
)[
1
];
String
houzhui
=
multipartFiles
[
i
].
split
(
","
)[
0
].
split
(
"/"
)[
1
].
split
(
";"
)[
0
];
/**
* 2.解码成字节数组
*/
filePath
=
FilePath
.
BACKGROUNDIMG
.
getValue
()+
"/"
+
y
+
"/"
+
h
+
"/"
+
path
+
"/"
+
date
.
getTime
()
+
"."
+
houzhui
;
String
filePath1
=
FilePath
.
BACKGROUNDIMG
.
getValue
()+
"/"
+
y
+
"/"
+
h
+
"/"
+
path
;
String
filePath1
=
FilePath
.
IDCARD
.
getValue
()
+
y
+
"/"
+
h
+
"/"
+
path
;
File
dir
=
new
File
(
filePath1
);
if
(!
dir
.
exists
())
{
dir
.
mkdirs
();
}
filePath
=
FilePath
.
IDCARD
.
getValue
()
+
y
+
"/"
+
h
+
"/"
+
path
+
"/"
+
date
.
getTime
()
+
"."
+
houzhui
;
//byte[] bytes = Base64.getUrlDecoder().decode(base64Data);
//byte[] bytes =new BASE64Decoder().decodeBuffer(base64Data);
//byte[] bytes = Base64.getDecoder().decode(base64Data);
...
...
@@ -70,6 +68,7 @@ public class PicturesUtil {
}
}
}
return
filePath
;
String
enclosure
=
filePath
.
replace
(
"enclosure"
,
"api/manager/ciop"
);
return
enclosure
;
}
}
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