记得上下班打卡 | 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
13ede65a
Commit
13ede65a
authored
Mar 16, 2022
by
anjiabin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
实现zxtnft购买功能
parent
7975ad85
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
ZxinArtworkBiz.java
...uidnet/service/galaxy/router/zxin/biz/ZxinArtworkBiz.java
+4
-4
bootstrap-dev.yml
...-service-galaxy-impl/src/main/resources/bootstrap-dev.yml
+1
-1
No files found.
liquidnet-bus-service/liquidnet-service-galaxy/liquidnet-service-galaxy-impl/src/main/java/com/liquidnet/service/galaxy/router/zxin/biz/ZxinArtworkBiz.java
View file @
13ede65a
...
@@ -64,7 +64,7 @@ public class ZxinArtworkBiz {
...
@@ -64,7 +64,7 @@ public class ZxinArtworkBiz {
public
ResponseDto
<
GalaxyNftImageRespDto
>
nftImageCheck
(
GalaxyNftImageReqDto
reqDto
)
{
public
ResponseDto
<
GalaxyNftImageRespDto
>
nftImageCheck
(
GalaxyNftImageReqDto
reqDto
)
{
Nft008QueryImageModerationReqDto
nft008ReqDto
=
Nft008QueryImageModerationReqDto
.
getNew
();
Nft008QueryImageModerationReqDto
nft008ReqDto
=
Nft008QueryImageModerationReqDto
.
getNew
();
nft008ReqDto
.
setImageUrl
(
reqDto
.
get
Image
Url
());
nft008ReqDto
.
setImageUrl
(
reqDto
.
get
NftOriginal
Url
());
ZxlnftResponseDto
<
Nft008QueryImageModerationRespDto
>
nft008RespDto
=
zxlnftSdkUtil
.
nft008QueryImageModeration
(
nft008ReqDto
);
ZxlnftResponseDto
<
Nft008QueryImageModerationRespDto
>
nft008RespDto
=
zxlnftSdkUtil
.
nft008QueryImageModeration
(
nft008ReqDto
);
if
(!
nft008RespDto
.
isSuccess
()){
if
(!
nft008RespDto
.
isSuccess
()){
throw
new
ZxlNftException
(
ZxlErrorEnum
.
IMAGE_CHECK_ERROR
.
getCode
(),
ZxlErrorEnum
.
IMAGE_CHECK_ERROR
.
getMsg
());
throw
new
ZxlNftException
(
ZxlErrorEnum
.
IMAGE_CHECK_ERROR
.
getCode
(),
ZxlErrorEnum
.
IMAGE_CHECK_ERROR
.
getMsg
());
...
@@ -77,7 +77,7 @@ public class ZxinArtworkBiz {
...
@@ -77,7 +77,7 @@ public class ZxinArtworkBiz {
public
ResponseDto
<
GalaxyNftUploadRespDto
>
nftUpload
(
GalaxyNftUploadReqDto
reqDto
)
{
public
ResponseDto
<
GalaxyNftUploadRespDto
>
nftUpload
(
GalaxyNftUploadReqDto
reqDto
)
{
String
imageUrl
=
reqDto
.
get
Image
Url
();
String
imageUrl
=
reqDto
.
get
NftOriginal
Url
();
//上传系列名只用来目录区分
//上传系列名只用来目录区分
String
seriesName
=
GalaxyConstant
.
SERIES_NAME_PREFIX
+
reqDto
.
getSkuId
();
//素材存储目录
String
seriesName
=
GalaxyConstant
.
SERIES_NAME_PREFIX
+
reqDto
.
getSkuId
();
//素材存储目录
String
filePath
=
null
;
String
filePath
=
null
;
...
@@ -85,7 +85,7 @@ public class ZxinArtworkBiz {
...
@@ -85,7 +85,7 @@ public class ZxinArtworkBiz {
String
fileName
=
IDGenerator
.
getZxlNftImageCosCode
()
+
imageType
;
String
fileName
=
IDGenerator
.
getZxlNftImageCosCode
()
+
imageType
;
//通过图片url地址上传
//通过图片url地址上传
File
cosFile
=
this
.
inputStreamToFile
(
reqDto
.
get
Image
Url
(),
fileName
);
File
cosFile
=
this
.
inputStreamToFile
(
reqDto
.
get
NftOriginal
Url
(),
fileName
);
filePath
=
cosFile
.
getAbsolutePath
();
filePath
=
cosFile
.
getAbsolutePath
();
log
.
info
(
"cosFile.getPath() :{}"
,
cosFile
.
getPath
());
log
.
info
(
"cosFile.getPath() :{}"
,
cosFile
.
getPath
());
log
.
info
(
"cosFile.getAbsoluteFile() :{}"
,
cosFile
.
getAbsoluteFile
());
log
.
info
(
"cosFile.getAbsoluteFile() :{}"
,
cosFile
.
getAbsoluteFile
());
...
@@ -133,7 +133,7 @@ public class ZxinArtworkBiz {
...
@@ -133,7 +133,7 @@ public class ZxinArtworkBiz {
GalaxyNftUploadRespDto
galaxyNftUploadRespDto
=
GalaxyNftUploadRespDto
.
getNew
();
GalaxyNftUploadRespDto
galaxyNftUploadRespDto
=
GalaxyNftUploadRespDto
.
getNew
();
galaxyNftUploadRespDto
.
setMaterialAccessUrl
(
fullFilePath
);
galaxyNftUploadRespDto
.
setMaterialAccessUrl
(
fullFilePath
);
galaxyNftUploadRespDto
.
setSkuId
(
reqDto
.
getSkuId
());
galaxyNftUploadRespDto
.
setSkuId
(
reqDto
.
getSkuId
());
galaxyNftUploadRespDto
.
set
ImageUrl
(
reqDto
.
getImage
Url
());
galaxyNftUploadRespDto
.
set
NftOriginalUrl
(
reqDto
.
getNftOriginal
Url
());
return
ResponseDto
.
success
(
galaxyNftUploadRespDto
);
return
ResponseDto
.
success
(
galaxyNftUploadRespDto
);
// 1.4.4调用查询素材地址接口 -- 非必需
// 1.4.4调用查询素材地址接口 -- 非必需
...
...
liquidnet-bus-service/liquidnet-service-galaxy/liquidnet-service-galaxy-impl/src/main/resources/bootstrap-dev.yml
View file @
13ede65a
...
@@ -6,7 +6,7 @@ liquidnet:
...
@@ -6,7 +6,7 @@ liquidnet:
username
:
user
username
:
user
password
:
user123
password
:
user123
eureka
:
eureka
:
host
:
1
27.0.0.1
:7001
host
:
1
72.17.192.42
:7001
# end-dev-这里是配置信息基本值
# end-dev-这里是配置信息基本值
spring
:
spring
:
...
...
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