记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
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
董敬伟
liquidnet-bus-v1
Commits
11984444
Commit
11984444
authored
Jan 07, 2023
by
zhanggb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
~revert:xuper upload image:临时文件名称处理;
parent
ddf6a58b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
16 deletions
+2
-16
XuperArtworkBiz.java
...dnet/service/galaxy/router/xuper/biz/XuperArtworkBiz.java
+2
-16
No files found.
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/galaxy/router/xuper/biz/XuperArtworkBiz.java
View file @
11984444
...
@@ -169,14 +169,7 @@ public class XuperArtworkBiz {
...
@@ -169,14 +169,7 @@ public class XuperArtworkBiz {
//判断类型是否为图片
//判断类型是否为图片
boolean
displayIsImageType
=
GalaxyCommonBiz
.
isImageType
(
originalDisplayUrl
);
boolean
displayIsImageType
=
GalaxyCommonBiz
.
isImageType
(
originalDisplayUrl
);
if
(
displayIsImageType
){
//如果是图片则获取原始宽高
if
(
displayIsImageType
){
//如果是图片则获取原始宽高
String
imageType
=
null
;
File
nftUrlFile
=
galaxyCommonBiz
.
inputStreamToFile
(
originalDisplayUrl
,
IDGenerator
.
getXuperNftImageCosCode
());
if
(
originalDisplayUrl
.
lastIndexOf
(
"?"
)
!=
-
1
)
{
String
tempUrl
=
originalDisplayUrl
.
substring
(
0
,
originalDisplayUrl
.
lastIndexOf
(
"?"
));
imageType
=
tempUrl
.
substring
(
tempUrl
.
lastIndexOf
(
"."
)
+
1
);
}
else
{
imageType
=
originalDisplayUrl
.
substring
(
originalDisplayUrl
.
lastIndexOf
(
"."
)
+
1
);
}
File
nftUrlFile
=
galaxyCommonBiz
.
inputStreamToFile
(
originalDisplayUrl
,
IDGenerator
.
getXuperNftImageCosCode
()
+
imageType
);
displayWidthAndHeight
=
GalaxyCommonBiz
.
getImageWidthAndHeight
(
nftUrlFile
.
getAbsolutePath
());
displayWidthAndHeight
=
GalaxyCommonBiz
.
getImageWidthAndHeight
(
nftUrlFile
.
getAbsolutePath
());
}
else
{
}
else
{
displayWidthAndHeight
.
put
(
"width"
,
290
);
displayWidthAndHeight
.
put
(
"width"
,
290
);
...
@@ -202,14 +195,7 @@ public class XuperArtworkBiz {
...
@@ -202,14 +195,7 @@ public class XuperArtworkBiz {
//判断类型是否为图片
//判断类型是否为图片
boolean
isImageType
=
GalaxyCommonBiz
.
isImageType
(
originalNftUrl
);
boolean
isImageType
=
GalaxyCommonBiz
.
isImageType
(
originalNftUrl
);
if
(
isImageType
){
//如果是图片则获取原始宽高
if
(
isImageType
){
//如果是图片则获取原始宽高
String
imageType
=
null
;
File
nftUrlFile
=
galaxyCommonBiz
.
inputStreamToFile
(
originalNftUrl
,
IDGenerator
.
getXuperNftImageCosCode
());
if
(
originalDisplayUrl
.
lastIndexOf
(
"?"
)
!=
-
1
)
{
String
tempUrl
=
originalDisplayUrl
.
substring
(
0
,
originalDisplayUrl
.
lastIndexOf
(
"?"
));
imageType
=
tempUrl
.
substring
(
tempUrl
.
lastIndexOf
(
"."
)
+
1
);
}
else
{
imageType
=
originalDisplayUrl
.
substring
(
originalDisplayUrl
.
lastIndexOf
(
"."
)
+
1
);
}
File
nftUrlFile
=
galaxyCommonBiz
.
inputStreamToFile
(
originalNftUrl
,
IDGenerator
.
getXuperNftImageCosCode
()
+
imageType
);
HashMap
<
String
,
Integer
>
widthAndHeight
=
GalaxyCommonBiz
.
getImageWidthAndHeight
(
nftUrlFile
.
getAbsolutePath
());
HashMap
<
String
,
Integer
>
widthAndHeight
=
GalaxyCommonBiz
.
getImageWidthAndHeight
(
nftUrlFile
.
getAbsolutePath
());
int
width
=
widthAndHeight
.
get
(
"width"
).
intValue
();
int
width
=
widthAndHeight
.
get
(
"width"
).
intValue
();
int
height
=
widthAndHeight
.
get
(
"height"
).
intValue
();
int
height
=
widthAndHeight
.
get
(
"height"
).
intValue
();
...
...
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