记得上下班打卡 | git大法好,push需谨慎

Commit 13ede65a authored by anjiabin's avatar anjiabin

实现zxtnft购买功能

parent 7975ad85
......@@ -64,7 +64,7 @@ public class ZxinArtworkBiz {
public ResponseDto<GalaxyNftImageRespDto> nftImageCheck(GalaxyNftImageReqDto reqDto) {
Nft008QueryImageModerationReqDto nft008ReqDto = Nft008QueryImageModerationReqDto.getNew();
nft008ReqDto.setImageUrl(reqDto.getImageUrl());
nft008ReqDto.setImageUrl(reqDto.getNftOriginalUrl());
ZxlnftResponseDto<Nft008QueryImageModerationRespDto> nft008RespDto = zxlnftSdkUtil.nft008QueryImageModeration(nft008ReqDto);
if(!nft008RespDto.isSuccess()){
throw new ZxlNftException(ZxlErrorEnum.IMAGE_CHECK_ERROR.getCode(),ZxlErrorEnum.IMAGE_CHECK_ERROR.getMsg());
......@@ -77,7 +77,7 @@ public class ZxinArtworkBiz {
public ResponseDto<GalaxyNftUploadRespDto> nftUpload(GalaxyNftUploadReqDto reqDto) {
String imageUrl = reqDto.getImageUrl();
String imageUrl = reqDto.getNftOriginalUrl();
//上传系列名只用来目录区分
String seriesName = GalaxyConstant.SERIES_NAME_PREFIX + reqDto.getSkuId(); //素材存储目录
String filePath = null;
......@@ -85,7 +85,7 @@ public class ZxinArtworkBiz {
String fileName = IDGenerator.getZxlNftImageCosCode() + imageType;
//通过图片url地址上传
File cosFile = this.inputStreamToFile(reqDto.getImageUrl(),fileName);
File cosFile = this.inputStreamToFile(reqDto.getNftOriginalUrl(),fileName);
filePath = cosFile.getAbsolutePath();
log.info("cosFile.getPath() :{}",cosFile.getPath());
log.info("cosFile.getAbsoluteFile() :{}",cosFile.getAbsoluteFile());
......@@ -133,7 +133,7 @@ public class ZxinArtworkBiz {
GalaxyNftUploadRespDto galaxyNftUploadRespDto = GalaxyNftUploadRespDto.getNew();
galaxyNftUploadRespDto.setMaterialAccessUrl(fullFilePath);
galaxyNftUploadRespDto.setSkuId(reqDto.getSkuId());
galaxyNftUploadRespDto.setImageUrl(reqDto.getImageUrl());
galaxyNftUploadRespDto.setNftOriginalUrl(reqDto.getNftOriginalUrl());
return ResponseDto.success(galaxyNftUploadRespDto);
// 1.4.4调用查询素材地址接口 -- 非必需
......
......@@ -6,7 +6,7 @@ liquidnet:
username: user
password: user123
eureka:
host: 127.0.0.1:7001
host: 172.17.192.42:7001
# end-dev-这里是配置信息基本值
spring:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment