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
948baa89
Commit
948baa89
authored
Sep 22, 2021
by
周健威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改代码
parent
72ff7357
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
GtdataController.java
.../upyuns/platform/rs/datacenter/rest/GtdataController.java
+11
-11
No files found.
rs-datacenter/rs-datacenter-server/src/main/java/com/upyuns/platform/rs/datacenter/rest/GtdataController.java
View file @
948baa89
...
...
@@ -48,24 +48,24 @@ public class GtdataController extends CommonBaseController implements UserRestIn
public
static
final
String
uploadP
=
"/rscloudmart/bg/upload/"
;
@RequestMapping
(
value
=
"/app/unauth/image/**"
,
method
=
RequestMethod
.
GET
)
@IgnoreUserToken
@IgnoreUserToken
public
void
queryAreaInfoByAreaId
()
throws
Exception
{
String
url
=
request
.
getRequestURI
();
String
fileUrl
=
url
.
substring
(
url
.
lastIndexOf
(
"/image/"
)+
6
);
String
fileName
=
url
.
substring
(
url
.
lastIndexOf
(
"/"
)+
1
);
String
filePath
=
""
;
if
(
fileUrl
.
contains
(
"SN8"
))
{
//
if(fileUrl.contains("SN8")) {
fileUrl
=
fileUrl
.
replace
(
".jpg"
,
".jpeg"
);
filePath
=
THUMBNAIL_PATH
+
fileUrl
;
}
else
{
if
(
fileName
.
lastIndexOf
(
".png"
)
>
0
)
{
filePath
=
"/rscloudmart/bg/upload/2021-01-05/1609838996306.png"
;
}
else
if
(
fileName
.
lastIndexOf
(
"98_98"
)
>
0
)
{
filePath
=
"/rscloudmart/bg/upload/2021-01-07/1609990102713.jpeg"
;
}
else
{
filePath
=
"/rscloudmart/bg/upload/2021-01-07/1609987144037.jpeg"
;
}
}
//
}else {
//
if(fileName.lastIndexOf(".png") > 0) {
//
filePath = "/rscloudmart/bg/upload/2021-01-05/1609838996306.png";
//
}else if(fileName.lastIndexOf("98_98") > 0) {
//
filePath = "/rscloudmart/bg/upload/2021-01-07/1609990102713.jpeg";
//
}else {
//
filePath = "/rscloudmart/bg/upload/2021-01-07/1609987144037.jpeg";
//
}
//
}
//String filePath = "https://w173.obtdata.com/image//data/HEM2/2019/11/18/HEM2_20191118235223_0010_L1B_CMOS1/HEM2_20191118235223_0010_L1B_CMOS1_800_800.png?op=OPEN";
//String filePath = "https://box.bdimg.com/static/fisp_static/common/img/searchbox/logo_news_276_88_1f9876a.png";
// String filePath = "/obt/thumbnail/"+ url.substring(url.lastIndexOf("/app/unauth/image/")+18);
...
...
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