Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
Project
Project
Details
Activity
Releases
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
youjj
cloud-platform
Commits
4f3bc86c
Commit
4f3bc86c
authored
Oct 14, 2019
by
hanfeng
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master_activity' into dev
parents
45819286
ba0802ac
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
UserBiz.java
...r/src/main/java/com/xxfc/platform/summit/biz/UserBiz.java
+1
-1
UploadZipServiceImpl.java
...platform/universal/service/impl/UploadZipServiceImpl.java
+4
-5
No files found.
xx-summit/xx-summit-server/src/main/java/com/xxfc/platform/summit/biz/UserBiz.java
View file @
4f3bc86c
...
...
@@ -97,7 +97,7 @@ public class UserBiz extends BaseBiz<UserMapper, User> {
log
.
info
(
"----code为空---"
);
throw
new
BaseException
(
ResultCode
.
FAILED_CODE
,
Sets
.
newSet
(
"code为空"
));
}
String
openid
=
"oXDd91
MppH9i5F7xzPwigiMj--5w
"
;
String
openid
=
"oXDd91
N8Rwijd3gscAND9TO77a2I
"
;
/*String access_token = null;
try {
JSONObject jsonData = weixinService.getAccessToken(code);
...
...
xx-universal/xx-universal-server/src/main/java/com/xxfc/platform/universal/service/impl/UploadZipServiceImpl.java
View file @
4f3bc86c
...
...
@@ -61,7 +61,7 @@ public class UploadZipServiceImpl implements UploadZipService {
log
.
error
(
"zip file save to "
+
uploadPath
+
" error"
,
e
.
getMessage
(),
e
);
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
FAILED_CODE
,
"保存压缩文件到:"
+
uploadPath
+
" 失败!"
);
}
//zip压缩包解压
//zip压缩包解压
return
unPackZip
(
file
,
prefix
);
}
...
...
@@ -77,7 +77,7 @@ public class UploadZipServiceImpl implements UploadZipService {
while
(
entries
.
hasMoreElements
())
{
ZipEntry
entry
=
entries
.
nextElement
();
if
(
entry
.
isDirectory
()
&&
index
++
==
0
)
{
File
dir
=
new
File
(
uploadPath
+
dirPathToday
);
File
dir
=
new
File
(
uploadPath
+
File
.
separator
+
dirPathToday
);
dir
.
mkdir
();
}
else
if
(!
entry
.
isDirectory
())
{
...
...
@@ -89,12 +89,11 @@ public class UploadZipServiceImpl implements UploadZipService {
String
format
=
name
.
substring
(
name
.
lastIndexOf
(
"."
));
if
(
PHOTO_FORMAT
.
contains
(
format
))
{
String
realFileRelPath
=
dirPathToday
+
File
.
separator
+
no
+
format
;
File
targetFile
=
new
File
(
uploadPath
+
realFileRelPath
);
File
targetFile
=
new
File
(
uploadPath
+
File
.
separator
+
realFileRelPath
);
FileUtils
.
copyInputStreamToFile
(
zipFile
.
getInputStream
(
entry
),
targetFile
);
realFileRelPath
=
xx_url
+
SystemConfig
.
XXMP_URL
+
realFileRelPath
;
realFileRelPath
=
xx_url
+
SystemConfig
.
XXMP_URL
+
File
.
separator
+
realFileRelPath
;
result
.
append
(
realFileRelPath
+
","
);
}
}
}
result
.
substring
(
0
,
result
.
length
()-
1
);
...
...
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