Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rs-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
周健威
rs-cloud-platform
Commits
7022acf2
Commit
7022acf2
authored
Sep 12, 2024
by
周健威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改接口
parent
4a7abea5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
GtDataRestClient.java
.../java/com/upyuns/platform/rs/gtdata/GtDataRestClient.java
+1
-0
AdminDataTempcacheController.java
...m/rs/website/controller/AdminDataTempcacheController.java
+6
-4
No files found.
ace-common/src/main/java/com/upyuns/platform/rs/gtdata/GtDataRestClient.java
View file @
7022acf2
...
@@ -738,6 +738,7 @@ public class GtDataRestClient {
...
@@ -738,6 +738,7 @@ public class GtDataRestClient {
* @param filePath
* @param filePath
* 文件保存的路径
* 文件保存的路径
* @param path
* @param path
* gtdata 路径
* @param sign
* @param sign
* @param time
* @param time
* @return
* @return
...
...
rs-website/rs-website-server/src/main/java/com/upyuns/platform/rs/website/controller/AdminDataTempcacheController.java
View file @
7022acf2
...
@@ -60,9 +60,9 @@ public class AdminDataTempcacheController extends BaseController<DataTempcacheBi
...
@@ -60,9 +60,9 @@ public class AdminDataTempcacheController extends BaseController<DataTempcacheBi
if
(
DataTempcache
.
UPTYPE_GTDATA
==
dataTempcacheDB
.
getUptype
())
{
if
(
DataTempcache
.
UPTYPE_GTDATA
==
dataTempcacheDB
.
getUptype
())
{
//判断是否存在本地路径和url
//判断是否存在本地路径和url
if
(
StrUtil
.
isBlank
(
dataTempcacheDB
.
getUpurl
()))
{
if
(
StrUtil
.
isBlank
(
dataTempcacheDB
.
getUpurl
()))
{
Map
<
String
,
Object
>
result
=
gtDataRestClient
.
open
(
dataTempcacheDB
.
getGtdataPath
());
// Map<String, Object> result = gtDataRestClient.openLarge
(dataTempcacheDB.getGtdataPath());
byte
[]
content
=
(
byte
[])
result
.
get
(
"file"
);
//
byte[] content = (byte[]) result.get("file");
getResponse
().
setContentLength
(
content
.
length
);
//
getResponse().setContentLength(content.length);
String
realPath
=
tempcachePath
+
"/"
+
dataTempcache
.
getId
();
String
realPath
=
tempcachePath
+
"/"
+
dataTempcache
.
getId
();
String
serverPath
=
baseUploadPath
+
realPath
;
String
serverPath
=
baseUploadPath
+
realPath
;
...
@@ -71,7 +71,9 @@ public class AdminDataTempcacheController extends BaseController<DataTempcacheBi
...
@@ -71,7 +71,9 @@ public class AdminDataTempcacheController extends BaseController<DataTempcacheBi
FileUtil
.
mkdir
(
serverPath
);
FileUtil
.
mkdir
(
serverPath
);
}
}
FileUtil
.
writeBytes
(
content
,
serverPath
+
"/"
+
dataTempcache
.
getFilename
());
gtDataRestClient
.
openLarge
(
serverPath
+
"/"
+
dataTempcache
.
getFilename
(),
dataTempcacheDB
.
getGtdataPath
());
// FileUtil.writeBytes(content, serverPath + "/" + dataTempcache.getFilename());
baseBiz
.
updateSelectiveById
(
new
DataTempcache
(){{
baseBiz
.
updateSelectiveById
(
new
DataTempcache
(){{
setId
(
dataTempcacheDB
.
getId
());
setId
(
dataTempcacheDB
.
getId
());
setFilepath
(
serverPath
+
"/"
+
dataTempcache
.
getFilename
());
setFilepath
(
serverPath
+
"/"
+
dataTempcache
.
getFilename
());
...
...
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