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
2c222552
Commit
2c222552
authored
Jul 20, 2019
by
hezhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
123
parent
0bc63042
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
systemconfig.properties
...mon/src/main/resources/properties/systemconfig.properties
+1
-1
UploadService.java
...va/com/xxfc/platform/universal/service/UploadService.java
+2
-2
No files found.
ace-common/src/main/resources/properties/systemconfig.properties
View file @
2c222552
#项目url
#项目url
XXMP_URL
=
https://xxtest.upyuns.com
/image
XXMP_URL
=
/image
#token到期时间
#token到期时间
TOKEN_OVER_TIME
=
604800
TOKEN_OVER_TIME
=
604800
#itoken到期时间(6天)
#itoken到期时间(6天)
...
...
xx-universal/xx-universal-server/src/main/java/com/xxfc/platform/universal/service/UploadService.java
View file @
2c222552
...
@@ -53,7 +53,7 @@ public class UploadService {
...
@@ -53,7 +53,7 @@ public class UploadService {
String
filePath
=
baseUploadPath
+
realFileRelPath
;
String
filePath
=
baseUploadPath
+
realFileRelPath
;
//将文件写入指定位置
//将文件写入指定位置
FileUtils
.
copyInputStreamToFile
(
file
.
getInputStream
(),
new
File
(
filePath
));
FileUtils
.
copyInputStreamToFile
(
file
.
getInputStream
(),
new
File
(
filePath
));
realFileRelPath
=
SystemConfig
.
XXMP_URL
+
realFileRelPath
;
realFileRelPath
=
xx_url
+
SystemConfig
.
XXMP_URL
+
realFileRelPath
;
return
realFileRelPath
;
return
realFileRelPath
;
}
}
...
@@ -83,7 +83,7 @@ public class UploadService {
...
@@ -83,7 +83,7 @@ public class UploadService {
realFileRelPath
=
filePath
+
"/"
+
no
+
".jpg"
;
realFileRelPath
=
filePath
+
"/"
+
no
+
".jpg"
;
//将文件写入指定位置
//将文件写入指定位置
ImgBase64Util
.
generateImage
(
imgFile
,
realFileRelPath
);
ImgBase64Util
.
generateImage
(
imgFile
,
realFileRelPath
);
realFileRelPath
=
SystemConfig
.
XXMP_URL
+
realFileRelPath
;
realFileRelPath
=
xx_url
+
SystemConfig
.
XXMP_URL
+
realFileRelPath
;
return
realFileRelPath
;
return
realFileRelPath
;
}
}
...
...
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