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

Commit b59fd3a4 authored by anjiabin's avatar anjiabin

至信链异常处理

parent f38f88bc
...@@ -2,6 +2,7 @@ package com.liquidnet.common.third.zxlnft.biz; ...@@ -2,6 +2,7 @@ package com.liquidnet.common.third.zxlnft.biz;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.liquidnet.common.third.zxlnft.config.ZxlnftConfig; import com.liquidnet.common.third.zxlnft.config.ZxlnftConfig;
import com.liquidnet.common.third.zxlnft.constant.ZxlErrorEnum;
import com.liquidnet.common.third.zxlnft.dto.wallet.*; import com.liquidnet.common.third.zxlnft.dto.wallet.*;
import com.liquidnet.common.third.zxlnft.exception.ZxlNftException; import com.liquidnet.common.third.zxlnft.exception.ZxlNftException;
import com.liquidnet.common.third.zxlnft.service.WalletSdkService; import com.liquidnet.common.third.zxlnft.service.WalletSdkService;
...@@ -83,7 +84,21 @@ public class ZxlnftBiz { ...@@ -83,7 +84,21 @@ public class ZxlnftBiz {
} }
public <T> T buildNftRespObj(String response,Class<T> tClass){ public <T> T buildNftRespObj(String response,Class<T> tClass){
return this.buildNftRespObj(response,tClass,true); T resp = null;
try {
/**
* 构造返回结果
*/
resp = this.buildNftRespObj(response,tClass,true);
log.info(tClass.getName()+"--->>> return result : {} ",resp.toString());
} catch (ZxlNftException e){
log.error("buildNftRespObj biz error response: {}", JsonUtils.toJson(response),e);
throw new ZxlNftException(e.getCode(),e.getMsg());
}catch (Exception e) {
log.error("buildNftRespObj sys error response: {}", JsonUtils.toJson(response),e);
throw new ZxlNftException(ZxlErrorEnum.SYSTEM_ERROR.getCode(),e.getMessage());
}
return resp;
} }
public <T> T buildNftRespObj(String response,Class<T> tClass,boolean isJson){ public <T> T buildNftRespObj(String response,Class<T> tClass,boolean isJson){
......
...@@ -2,11 +2,14 @@ package com.liquidnet.common.third.zxlnft.service.impl; ...@@ -2,11 +2,14 @@ package com.liquidnet.common.third.zxlnft.service.impl;
import com.liquidnet.common.third.zxlnft.biz.ZxlnftBiz; import com.liquidnet.common.third.zxlnft.biz.ZxlnftBiz;
import com.liquidnet.common.third.zxlnft.config.ZxlnftConfig; import com.liquidnet.common.third.zxlnft.config.ZxlnftConfig;
import com.liquidnet.common.third.zxlnft.constant.ZxlErrorEnum;
import com.liquidnet.common.third.zxlnft.constant.ZxlnftConstant; import com.liquidnet.common.third.zxlnft.constant.ZxlnftConstant;
import com.liquidnet.common.third.zxlnft.dto.nft.*; import com.liquidnet.common.third.zxlnft.dto.nft.*;
import com.liquidnet.common.third.zxlnft.exception.ZxlNftException;
import com.liquidnet.common.third.zxlnft.service.ZxlnftSdkService; import com.liquidnet.common.third.zxlnft.service.ZxlnftSdkService;
import com.liquidnet.commons.lang.util.BeanUtil; import com.liquidnet.commons.lang.util.BeanUtil;
import com.liquidnet.commons.lang.util.HttpUtil; import com.liquidnet.commons.lang.util.HttpUtil;
import com.liquidnet.commons.lang.util.JsonUtils;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
...@@ -50,10 +53,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService ...@@ -50,10 +53,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService
} }
log.info("nft001RegisterVerifyCode--->>> response : {} ",response); log.info("nft001RegisterVerifyCode--->>> response : {} ",response);
if (StringUtils.isEmpty(response)) {
return null;
}
/** /**
* 构造返回结果 * 构造返回结果
*/ */
...@@ -83,10 +82,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService ...@@ -83,10 +82,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService
} }
log.info("nft002RegisterPerson--->>> response : {} ",response); log.info("nft002RegisterPerson--->>> response : {} ",response);
if (StringUtils.isEmpty(response)) {
return null;
}
/** /**
* 构造返回结果 * 构造返回结果
*/ */
...@@ -110,16 +105,12 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService ...@@ -110,16 +105,12 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService
try { try {
response = HttpUtil.postJson(requestUrl,reqJsonStr,commonHeader); response = HttpUtil.postJson(requestUrl,reqJsonStr,commonHeader);
} catch(HttpClientErrorException e) { } catch(HttpClientErrorException e) {
log.error("nft003RegisterPersonPlatform error", e); log.error("nft003RegisterPersonPlatform error:",e);
}catch (Exception e) { }catch (Exception e) {
log.error("nft003RegisterPersonPlatform error",e); log.error("nft003RegisterPersonPlatform error:",e);
} }
log.info("nft003RegisterPersonPlatform--->>> response : {} ",response); log.info("nft003RegisterPersonPlatform--->>> response : {} ",response);
// if (StringUtils.isEmpty(response)) {
// return null;
// }
/** /**
* 构造返回结果 * 构造返回结果
*/ */
...@@ -149,10 +140,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService ...@@ -149,10 +140,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService
} }
log.info("nft004BusinessLicenseUpload--->>> response : {} ",response); log.info("nft004BusinessLicenseUpload--->>> response : {} ",response);
if (StringUtils.isEmpty(response)) {
return null;
}
/** /**
* 构造返回结果 * 构造返回结果
*/ */
...@@ -182,10 +169,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService ...@@ -182,10 +169,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService
} }
log.info("nft005BusinessLicenseUploadPlatform--->>> response : {} ",response); log.info("nft005BusinessLicenseUploadPlatform--->>> response : {} ",response);
if (StringUtils.isEmpty(response)) {
return null;
}
/** /**
* 构造返回结果 * 构造返回结果
*/ */
...@@ -215,11 +198,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService ...@@ -215,11 +198,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService
} }
log.info("nft006OfficialLetterUpload--->>> response : {} ",response); log.info("nft006OfficialLetterUpload--->>> response : {} ",response);
if (StringUtils.isEmpty(response)) {
return null;
}
/** /**
* 构造返回结果 * 构造返回结果
*/ */
...@@ -249,10 +227,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService ...@@ -249,10 +227,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService
} }
log.info("nft007OfficialLetterUploadPlatform--->>> response : {} ",response); log.info("nft007OfficialLetterUploadPlatform--->>> response : {} ",response);
if (StringUtils.isEmpty(response)) {
return null;
}
/** /**
* 构造返回结果 * 构造返回结果
*/ */
...@@ -283,10 +257,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService ...@@ -283,10 +257,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService
} }
log.info("nft008QueryImageModeration--->>> response : {} ",response); log.info("nft008QueryImageModeration--->>> response : {} ",response);
if (StringUtils.isEmpty(response)) {
return null;
}
/** /**
* 构造返回结果 * 构造返回结果
*/ */
...@@ -317,11 +287,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService ...@@ -317,11 +287,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService
} }
log.info("nft009RegisterCompany--->>> response : {} ",response); log.info("nft009RegisterCompany--->>> response : {} ",response);
if (StringUtils.isEmpty(response)) {
return null;
}
/** /**
* 构造返回结果 * 构造返回结果
*/ */
...@@ -351,11 +316,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService ...@@ -351,11 +316,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService
} }
log.info("nft010RegisterCompanyPlatform--->>> response : {} ",response); log.info("nft010RegisterCompanyPlatform--->>> response : {} ",response);
if (StringUtils.isEmpty(response)) {
return null;
}
/** /**
* 构造返回结果 * 构造返回结果
*/ */
...@@ -385,11 +345,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService ...@@ -385,11 +345,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService
} }
log.info("nft011UserQueryVerifyCode--->>> response : {} ",response); log.info("nft011UserQueryVerifyCode--->>> response : {} ",response);
if (StringUtils.isEmpty(response)) {
return null;
}
/** /**
* 构造返回结果 * 构造返回结果
*/ */
...@@ -421,10 +376,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService ...@@ -421,10 +376,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService
} }
log.info("nft012UserQuery--->>> response : {} ",response); log.info("nft012UserQuery--->>> response : {} ",response);
if (StringUtils.isEmpty(response)) {
return null;
}
/** /**
* 构造返回结果 * 构造返回结果
*/ */
...@@ -454,11 +405,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService ...@@ -454,11 +405,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService
} }
log.info("nft013IdentityBindSubmit--->>> response : {} ",response); log.info("nft013IdentityBindSubmit--->>> response : {} ",response);
if (StringUtils.isEmpty(response)) {
return null;
}
/** /**
* 构造返回结果 * 构造返回结果
*/ */
...@@ -518,10 +464,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService ...@@ -518,10 +464,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService
} }
log.info("nft015IdentityBindPlatformSelf--->>> response : {} ",response); log.info("nft015IdentityBindPlatformSelf--->>> response : {} ",response);
if (StringUtils.isEmpty(response)) {
return null;
}
/** /**
* 构造返回结果 * 构造返回结果
*/ */
...@@ -554,10 +496,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService ...@@ -554,10 +496,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService
} }
log.info("nft016IdentityBindQuery--->>> response : {} ",response); log.info("nft016IdentityBindQuery--->>> response : {} ",response);
if (StringUtils.isEmpty(response)) {
return null;
}
/** /**
* 构造返回结果 * 构造返回结果
*/ */
...@@ -587,11 +525,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService ...@@ -587,11 +525,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService
} }
log.info("nft017IdentityVerifyIdentity--->>> response : {} ",response); log.info("nft017IdentityVerifyIdentity--->>> response : {} ",response);
if (StringUtils.isEmpty(response)) {
return null;
}
/** /**
* 构造返回结果 * 构造返回结果
*/ */
...@@ -621,11 +554,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService ...@@ -621,11 +554,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService
} }
log.info("nft018FaceUrl--->>> response : {} ",response); log.info("nft018FaceUrl--->>> response : {} ",response);
if (StringUtils.isEmpty(response)) {
return null;
}
/** /**
* 构造返回结果 * 构造返回结果
*/ */
...@@ -655,10 +583,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService ...@@ -655,10 +583,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService
} }
log.info("nft019FaceUrlByAddress--->>> response : {} ",response); log.info("nft019FaceUrlByAddress--->>> response : {} ",response);
if (StringUtils.isEmpty(response)) {
return null;
}
/** /**
* 构造返回结果 * 构造返回结果
*/ */
...@@ -690,10 +614,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService ...@@ -690,10 +614,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService
} }
log.info("nft020FaceQuery--->>> response : {} ",response); log.info("nft020FaceQuery--->>> response : {} ",response);
if (StringUtils.isEmpty(response)) {
return null;
}
/** /**
* 构造返回结果 * 构造返回结果
*/ */
...@@ -725,9 +645,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService ...@@ -725,9 +645,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService
} }
log.info("nft021UploadUrl--->>> response : {} ",response); log.info("nft021UploadUrl--->>> response : {} ",response);
if (StringUtils.isEmpty(response)) {
return null;
}
/** /**
* 构造返回结果 * 构造返回结果
*/ */
...@@ -778,10 +695,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService ...@@ -778,10 +695,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService
} }
log.info("nft022UploadSecret--->>> response : {} ",response); log.info("nft022UploadSecret--->>> response : {} ",response);
if (StringUtils.isEmpty(response)) {
return null;
}
/** /**
* 构造返回结果 * 构造返回结果
*/ */
...@@ -810,9 +723,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService ...@@ -810,9 +723,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService
} }
log.info("nft023PointApply--->>> response : {} ",response); log.info("nft023PointApply--->>> response : {} ",response);
if (StringUtils.isEmpty(response)) {
return null;
}
/** /**
* 构造返回结果 * 构造返回结果
*/ */
...@@ -843,9 +753,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService ...@@ -843,9 +753,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService
} }
log.info("nft024PointApplyResult--->>> response : {} ",response); log.info("nft024PointApplyResult--->>> response : {} ",response);
if (StringUtils.isEmpty(response)) {
return null;
}
/** /**
* 构造返回结果 * 构造返回结果
*/ */
...@@ -875,9 +782,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService ...@@ -875,9 +782,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService
} }
log.info("nft025PointTransfer--->>> response : {} ",response); log.info("nft025PointTransfer--->>> response : {} ",response);
if (StringUtils.isEmpty(response)) {
return null;
}
/** /**
* 构造返回结果 * 构造返回结果
*/ */
...@@ -909,9 +813,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService ...@@ -909,9 +813,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService
} }
log.info("nft026PointTransferResult--->>> response : {} ",response); log.info("nft026PointTransferResult--->>> response : {} ",response);
if (StringUtils.isEmpty(response)) {
return null;
}
/** /**
* 构造返回结果 * 构造返回结果
*/ */
...@@ -941,9 +842,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService ...@@ -941,9 +842,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService
} }
log.info("nft027PointDestroy--->>> response : {} ",response); log.info("nft027PointDestroy--->>> response : {} ",response);
if (StringUtils.isEmpty(response)) {
return null;
}
/** /**
* 构造返回结果 * 构造返回结果
*/ */
...@@ -976,9 +874,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService ...@@ -976,9 +874,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService
} }
log.info("nft028PointDestoryResult--->>> response : {} ",response); log.info("nft028PointDestoryResult--->>> response : {} ",response);
if (StringUtils.isEmpty(response)) {
return null;
}
/** /**
* 构造返回结果 * 构造返回结果
*/ */
...@@ -1010,9 +905,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService ...@@ -1010,9 +905,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService
} }
log.info("nft029PointQuery--->>> response : {} ",response); log.info("nft029PointQuery--->>> response : {} ",response);
if (StringUtils.isEmpty(response)) {
return null;
}
/** /**
* 构造返回结果 * 构造返回结果
*/ */
...@@ -1042,9 +934,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService ...@@ -1042,9 +934,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService
} }
log.info("nft030SeriesClaim--->>> response : {} ",response); log.info("nft030SeriesClaim--->>> response : {} ",response);
if (StringUtils.isEmpty(response)) {
return null;
}
/** /**
* 构造返回结果 * 构造返回结果
*/ */
...@@ -1077,9 +966,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService ...@@ -1077,9 +966,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService
} }
log.info("nft031SeriesClaimResult--->>> response : {} ",response); log.info("nft031SeriesClaimResult--->>> response : {} ",response);
if (StringUtils.isEmpty(response)) {
return null;
}
/** /**
* 构造返回结果 * 构造返回结果
*/ */
...@@ -1111,10 +997,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService ...@@ -1111,10 +997,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService
} }
log.info("nft032Series--->>> response : {} ",response); log.info("nft032Series--->>> response : {} ",response);
if (StringUtils.isEmpty(response)) {
return null;
}
/** /**
* 构造返回结果 * 构造返回结果
*/ */
...@@ -1146,9 +1028,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService ...@@ -1146,9 +1028,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService
} }
log.info("nft033SeriesList--->>> response : {} ",response); log.info("nft033SeriesList--->>> response : {} ",response);
if (StringUtils.isEmpty(response)) {
return null;
}
/** /**
* 构造返回结果 * 构造返回结果
*/ */
...@@ -1178,10 +1057,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService ...@@ -1178,10 +1057,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService
} }
log.info("nft034Publish--->>> response : {} ",response); log.info("nft034Publish--->>> response : {} ",response);
if (StringUtils.isEmpty(response)) {
return null;
}
/** /**
* 构造返回结果 * 构造返回结果
*/ */
...@@ -1232,14 +1107,10 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService ...@@ -1232,14 +1107,10 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService
} }
log.info("nft035PublishResult--->>> response : {} ",response); log.info("nft035PublishResult--->>> response : {} ",response);
if (StringUtils.isEmpty(response)) {
return null;
}
/** /**
* 构造返回结果 * 构造返回结果
*/ */
Nft035PublishResultResp resp = zxlnftBiz.buildNftRespObj(response,Nft035PublishResultResp.class); Nft035PublishResultResp resp = zxlnftBiz.buildNftRespObj(response, Nft035PublishResultResp.class);
log.info("nft035PublishResult--->>> return result : {} ",resp.toString()); log.info("nft035PublishResult--->>> return result : {} ",resp.toString());
return resp; return resp;
} }
...@@ -1266,10 +1137,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService ...@@ -1266,10 +1137,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService
} }
log.info("nft036Info--->>> response : {} ",response); log.info("nft036Info--->>> response : {} ",response);
if (StringUtils.isEmpty(response)) {
return null;
}
/** /**
* 构造返回结果 * 构造返回结果
*/ */
...@@ -1301,10 +1168,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService ...@@ -1301,10 +1168,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService
} }
log.info("nft037AddressList--->>> response : {} ",response); log.info("nft037AddressList--->>> response : {} ",response);
if (StringUtils.isEmpty(response)) {
return null;
}
/** /**
* 构造返回结果 * 构造返回结果
*/ */
...@@ -1336,10 +1199,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService ...@@ -1336,10 +1199,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService
} }
log.info("nft038AddressWithoutSeriesList--->>> response : {} ",response); log.info("nft038AddressWithoutSeriesList--->>> response : {} ",response);
if (StringUtils.isEmpty(response)) {
return null;
}
/** /**
* 构造返回结果 * 构造返回结果
*/ */
...@@ -1371,10 +1230,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService ...@@ -1371,10 +1230,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService
} }
log.info("nft039TradeList--->>> response : {} ",response); log.info("nft039TradeList--->>> response : {} ",response);
if (StringUtils.isEmpty(response)) {
return null;
}
/** /**
* 构造返回结果 * 构造返回结果
*/ */
...@@ -1406,10 +1261,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService ...@@ -1406,10 +1261,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService
} }
log.info("nft040TradeInList--->>> response : {} ",response); log.info("nft040TradeInList--->>> response : {} ",response);
if (StringUtils.isEmpty(response)) {
return null;
}
/** /**
* 构造返回结果 * 构造返回结果
*/ */
...@@ -1441,10 +1292,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService ...@@ -1441,10 +1292,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService
} }
log.info("nft041TradeOutList--->>> response : {} ",response); log.info("nft041TradeOutList--->>> response : {} ",response);
if (StringUtils.isEmpty(response)) {
return null;
}
/** /**
* 构造返回结果 * 构造返回结果
*/ */
...@@ -1476,10 +1323,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService ...@@ -1476,10 +1323,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService
} }
log.info("nft042TradeAllList--->>> response : {} ",response); log.info("nft042TradeAllList--->>> response : {} ",response);
if (StringUtils.isEmpty(response)) {
return null;
}
/** /**
* 构造返回结果 * 构造返回结果
*/ */
...@@ -1509,9 +1352,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService ...@@ -1509,9 +1352,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService
} }
log.info("nft043Buy--->>> response : {} ",response); log.info("nft043Buy--->>> response : {} ",response);
if (StringUtils.isEmpty(response)) {
return null;
}
/** /**
* 构造返回结果 * 构造返回结果
*/ */
...@@ -1543,9 +1383,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService ...@@ -1543,9 +1383,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService
} }
log.info("nft044BuyResult--->>> response : {} ",response); log.info("nft044BuyResult--->>> response : {} ",response);
if (StringUtils.isEmpty(response)) {
return null;
}
/** /**
* 构造返回结果 * 构造返回结果
*/ */
...@@ -1577,9 +1414,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService ...@@ -1577,9 +1414,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService
} }
log.info("nft045BuyPayResult--->>> response : {} ",response); log.info("nft045BuyPayResult--->>> response : {} ",response);
if (StringUtils.isEmpty(response)) {
return null;
}
/** /**
* 构造返回结果 * 构造返回结果
*/ */
...@@ -1609,10 +1443,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService ...@@ -1609,10 +1443,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService
} }
log.info("nft046Transfer--->>> response : {} ",response); log.info("nft046Transfer--->>> response : {} ",response);
if (StringUtils.isEmpty(response)) {
return null;
}
/** /**
* 构造返回结果 * 构造返回结果
*/ */
...@@ -1642,10 +1472,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService ...@@ -1642,10 +1472,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService
} }
log.info("nft047SelfTransfer--->>> response : {} ",response); log.info("nft047SelfTransfer--->>> response : {} ",response);
if (StringUtils.isEmpty(response)) {
return null;
}
/** /**
* 构造返回结果 * 构造返回结果
*/ */
...@@ -1675,10 +1501,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService ...@@ -1675,10 +1501,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService
} }
log.info("nft048BatchTransfer--->>> response : {} ",response); log.info("nft048BatchTransfer--->>> response : {} ",response);
if (StringUtils.isEmpty(response)) {
return null;
}
/** /**
* 构造返回结果 * 构造返回结果
*/ */
...@@ -1710,10 +1532,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService ...@@ -1710,10 +1532,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService
} }
log.info("nft049TransferResult--->>> response : {} ",response); log.info("nft049TransferResult--->>> response : {} ",response);
if (StringUtils.isEmpty(response)) {
return null;
}
/** /**
* 构造返回结果 * 构造返回结果
*/ */
...@@ -1743,10 +1561,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService ...@@ -1743,10 +1561,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService
} }
log.info("nft050StatusUpdate--->>> response : {} ",response); log.info("nft050StatusUpdate--->>> response : {} ",response);
if (StringUtils.isEmpty(response)) {
return null;
}
/** /**
* 构造返回结果 * 构造返回结果
*/ */
...@@ -1778,9 +1592,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService ...@@ -1778,9 +1592,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService
} }
log.info("nft051StatusUpdateResult--->>> response : {} ",response); log.info("nft051StatusUpdateResult--->>> response : {} ",response);
if (StringUtils.isEmpty(response)) {
return null;
}
/** /**
* 构造返回结果 * 构造返回结果
*/ */
...@@ -1810,10 +1621,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService ...@@ -1810,10 +1621,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService
} }
log.info("nft052PriceUpdate--->>> response : {} ",response); log.info("nft052PriceUpdate--->>> response : {} ",response);
if (StringUtils.isEmpty(response)) {
return null;
}
/** /**
* 构造返回结果 * 构造返回结果
*/ */
...@@ -1845,9 +1652,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService ...@@ -1845,9 +1652,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService
} }
log.info("nft053PriceUpdateResult--->>> response : {} ",response); log.info("nft053PriceUpdateResult--->>> response : {} ",response);
if (StringUtils.isEmpty(response)) {
return null;
}
/** /**
* 构造返回结果 * 构造返回结果
*/ */
...@@ -1879,9 +1683,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService ...@@ -1879,9 +1683,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService
} }
log.info("nft054QueryUserAddressBelongToUser--->>> response : {} ",response); log.info("nft054QueryUserAddressBelongToUser--->>> response : {} ",response);
if (StringUtils.isEmpty(response)) {
return null;
}
/** /**
* 构造返回结果 * 构造返回结果
*/ */
......
...@@ -8,6 +8,7 @@ import com.liquidnet.common.third.zxlnft.dto.nft.*; ...@@ -8,6 +8,7 @@ import com.liquidnet.common.third.zxlnft.dto.nft.*;
import com.liquidnet.common.third.zxlnft.exception.ZxlNftException; import com.liquidnet.common.third.zxlnft.exception.ZxlNftException;
import com.liquidnet.common.third.zxlnft.service.ZxlnftSdkService; import com.liquidnet.common.third.zxlnft.service.ZxlnftSdkService;
import com.liquidnet.commons.lang.util.BeanUtil; import com.liquidnet.commons.lang.util.BeanUtil;
import com.liquidnet.commons.lang.util.JsonUtils;
import com.liquidnet.commons.lang.util.StringUtil; import com.liquidnet.commons.lang.util.StringUtil;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
...@@ -48,6 +49,8 @@ public class ZxlnftSdkUtil { ...@@ -48,6 +49,8 @@ public class ZxlnftSdkUtil {
BeanUtil.copy(resp,respDto); BeanUtil.copy(resp,respDto);
}catch(ZxlNftException e){ }catch(ZxlNftException e){
return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage()); return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage());
}catch(Exception e){
return ZxlnftResponseDto.failure(ZxlErrorEnum.SERVER_INNER_ERROR.getCode(),ZxlErrorEnum.SERVER_INNER_ERROR.getMsg());
} }
return ZxlnftResponseDto.success(respDto); return ZxlnftResponseDto.success(respDto);
} }
...@@ -65,6 +68,8 @@ public class ZxlnftSdkUtil { ...@@ -65,6 +68,8 @@ public class ZxlnftSdkUtil {
BeanUtil.copy(resp,respDto); BeanUtil.copy(resp,respDto);
}catch(ZxlNftException e){ }catch(ZxlNftException e){
return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage()); return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage());
}catch(Exception e){
return ZxlnftResponseDto.failure(ZxlErrorEnum.SERVER_INNER_ERROR.getCode(),ZxlErrorEnum.SERVER_INNER_ERROR.getMsg());
} }
return ZxlnftResponseDto.success(respDto); return ZxlnftResponseDto.success(respDto);
} }
...@@ -110,6 +115,8 @@ public class ZxlnftSdkUtil { ...@@ -110,6 +115,8 @@ public class ZxlnftSdkUtil {
BeanUtil.copy(resp,respDto); BeanUtil.copy(resp,respDto);
}catch(ZxlNftException e){ }catch(ZxlNftException e){
return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage()); return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage());
}catch(Exception e){
return ZxlnftResponseDto.failure(ZxlErrorEnum.SERVER_INNER_ERROR.getCode(),ZxlErrorEnum.SERVER_INNER_ERROR.getMsg());
} }
return ZxlnftResponseDto.success(respDto); return ZxlnftResponseDto.success(respDto);
} }
...@@ -136,6 +143,8 @@ public class ZxlnftSdkUtil { ...@@ -136,6 +143,8 @@ public class ZxlnftSdkUtil {
BeanUtil.copy(resp,respDto); BeanUtil.copy(resp,respDto);
}catch(ZxlNftException e){ }catch(ZxlNftException e){
return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage()); return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage());
}catch(Exception e){
return ZxlnftResponseDto.failure(ZxlErrorEnum.SERVER_INNER_ERROR.getCode(),ZxlErrorEnum.SERVER_INNER_ERROR.getMsg());
} }
return ZxlnftResponseDto.success(respDto); return ZxlnftResponseDto.success(respDto);
} }
...@@ -153,6 +162,8 @@ public class ZxlnftSdkUtil { ...@@ -153,6 +162,8 @@ public class ZxlnftSdkUtil {
BeanUtil.copy(resp,respDto); BeanUtil.copy(resp,respDto);
}catch(ZxlNftException e){ }catch(ZxlNftException e){
return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage()); return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage());
}catch(Exception e){
return ZxlnftResponseDto.failure(ZxlErrorEnum.SERVER_INNER_ERROR.getCode(),ZxlErrorEnum.SERVER_INNER_ERROR.getMsg());
} }
return ZxlnftResponseDto.success(respDto); return ZxlnftResponseDto.success(respDto);
} }
...@@ -179,6 +190,8 @@ public class ZxlnftSdkUtil { ...@@ -179,6 +190,8 @@ public class ZxlnftSdkUtil {
BeanUtil.copy(resp,respDto); BeanUtil.copy(resp,respDto);
}catch(ZxlNftException e){ }catch(ZxlNftException e){
return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage()); return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage());
}catch(Exception e){
return ZxlnftResponseDto.failure(ZxlErrorEnum.SERVER_INNER_ERROR.getCode(),ZxlErrorEnum.SERVER_INNER_ERROR.getMsg());
} }
return ZxlnftResponseDto.success(respDto); return ZxlnftResponseDto.success(respDto);
} }
...@@ -196,6 +209,8 @@ public class ZxlnftSdkUtil { ...@@ -196,6 +209,8 @@ public class ZxlnftSdkUtil {
BeanUtil.copy(resp,respDto); BeanUtil.copy(resp,respDto);
}catch(ZxlNftException e){ }catch(ZxlNftException e){
return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage()); return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage());
}catch(Exception e){
return ZxlnftResponseDto.failure(ZxlErrorEnum.SERVER_INNER_ERROR.getCode(),ZxlErrorEnum.SERVER_INNER_ERROR.getMsg());
} }
return ZxlnftResponseDto.success(respDto); return ZxlnftResponseDto.success(respDto);
} }
...@@ -213,6 +228,8 @@ public class ZxlnftSdkUtil { ...@@ -213,6 +228,8 @@ public class ZxlnftSdkUtil {
BeanUtil.copy(resp,respDto); BeanUtil.copy(resp,respDto);
}catch(ZxlNftException e){ }catch(ZxlNftException e){
return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage()); return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage());
}catch(Exception e){
return ZxlnftResponseDto.failure(ZxlErrorEnum.SERVER_INNER_ERROR.getCode(),ZxlErrorEnum.SERVER_INNER_ERROR.getMsg());
} }
return ZxlnftResponseDto.success(respDto); return ZxlnftResponseDto.success(respDto);
} }
...@@ -243,6 +260,8 @@ public class ZxlnftSdkUtil { ...@@ -243,6 +260,8 @@ public class ZxlnftSdkUtil {
BeanUtil.copy(resp,respDto); BeanUtil.copy(resp,respDto);
}catch(ZxlNftException e){ }catch(ZxlNftException e){
return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage()); return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage());
}catch(Exception e){
return ZxlnftResponseDto.failure(ZxlErrorEnum.SERVER_INNER_ERROR.getCode(),ZxlErrorEnum.SERVER_INNER_ERROR.getMsg());
} }
return ZxlnftResponseDto.success(respDto); return ZxlnftResponseDto.success(respDto);
} }
...@@ -260,6 +279,8 @@ public class ZxlnftSdkUtil { ...@@ -260,6 +279,8 @@ public class ZxlnftSdkUtil {
BeanUtil.copy(resp,respDto); BeanUtil.copy(resp,respDto);
}catch(ZxlNftException e){ }catch(ZxlNftException e){
return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage()); return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage());
}catch(Exception e){
return ZxlnftResponseDto.failure(ZxlErrorEnum.SERVER_INNER_ERROR.getCode(),ZxlErrorEnum.SERVER_INNER_ERROR.getMsg());
} }
return ZxlnftResponseDto.success(respDto); return ZxlnftResponseDto.success(respDto);
} }
...@@ -277,6 +298,8 @@ public class ZxlnftSdkUtil { ...@@ -277,6 +298,8 @@ public class ZxlnftSdkUtil {
BeanUtil.copy(resp,respDto); BeanUtil.copy(resp,respDto);
}catch(ZxlNftException e){ }catch(ZxlNftException e){
return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage()); return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage());
}catch(Exception e){
return ZxlnftResponseDto.failure(ZxlErrorEnum.SERVER_INNER_ERROR.getCode(),ZxlErrorEnum.SERVER_INNER_ERROR.getMsg());
} }
return ZxlnftResponseDto.success(respDto); return ZxlnftResponseDto.success(respDto);
} }
...@@ -294,6 +317,8 @@ public class ZxlnftSdkUtil { ...@@ -294,6 +317,8 @@ public class ZxlnftSdkUtil {
BeanUtil.copy(resp,respDto); BeanUtil.copy(resp,respDto);
}catch(ZxlNftException e){ }catch(ZxlNftException e){
return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage()); return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage());
}catch(Exception e){
return ZxlnftResponseDto.failure(ZxlErrorEnum.SERVER_INNER_ERROR.getCode(),ZxlErrorEnum.SERVER_INNER_ERROR.getMsg());
} }
return ZxlnftResponseDto.success(respDto); return ZxlnftResponseDto.success(respDto);
} }
...@@ -338,6 +363,8 @@ public class ZxlnftSdkUtil { ...@@ -338,6 +363,8 @@ public class ZxlnftSdkUtil {
BeanUtil.copy(resp,respDto); BeanUtil.copy(resp,respDto);
}catch(ZxlNftException e){ }catch(ZxlNftException e){
return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage()); return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage());
}catch(Exception e){
return ZxlnftResponseDto.failure(ZxlErrorEnum.SERVER_INNER_ERROR.getCode(),ZxlErrorEnum.SERVER_INNER_ERROR.getMsg());
} }
return ZxlnftResponseDto.success(respDto); return ZxlnftResponseDto.success(respDto);
} }
...@@ -355,6 +382,8 @@ public class ZxlnftSdkUtil { ...@@ -355,6 +382,8 @@ public class ZxlnftSdkUtil {
BeanUtil.copy(resp,respDto); BeanUtil.copy(resp,respDto);
}catch(ZxlNftException e){ }catch(ZxlNftException e){
return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage()); return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage());
}catch(Exception e){
return ZxlnftResponseDto.failure(ZxlErrorEnum.SERVER_INNER_ERROR.getCode(),ZxlErrorEnum.SERVER_INNER_ERROR.getMsg());
} }
return ZxlnftResponseDto.success(respDto); return ZxlnftResponseDto.success(respDto);
} }
...@@ -372,6 +401,8 @@ public class ZxlnftSdkUtil { ...@@ -372,6 +401,8 @@ public class ZxlnftSdkUtil {
BeanUtil.copy(resp,respDto); BeanUtil.copy(resp,respDto);
}catch(ZxlNftException e){ }catch(ZxlNftException e){
return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage()); return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage());
}catch(Exception e){
return ZxlnftResponseDto.failure(ZxlErrorEnum.SERVER_INNER_ERROR.getCode(),ZxlErrorEnum.SERVER_INNER_ERROR.getMsg());
} }
return ZxlnftResponseDto.success(respDto); return ZxlnftResponseDto.success(respDto);
} }
...@@ -389,6 +420,8 @@ public class ZxlnftSdkUtil { ...@@ -389,6 +420,8 @@ public class ZxlnftSdkUtil {
BeanUtil.copy(resp,respDto); BeanUtil.copy(resp,respDto);
}catch(ZxlNftException e){ }catch(ZxlNftException e){
return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage()); return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage());
}catch(Exception e){
return ZxlnftResponseDto.failure(ZxlErrorEnum.SERVER_INNER_ERROR.getCode(),ZxlErrorEnum.SERVER_INNER_ERROR.getMsg());
} }
return ZxlnftResponseDto.success(respDto); return ZxlnftResponseDto.success(respDto);
} }
...@@ -406,6 +439,8 @@ public class ZxlnftSdkUtil { ...@@ -406,6 +439,8 @@ public class ZxlnftSdkUtil {
BeanUtil.copy(resp,respDto); BeanUtil.copy(resp,respDto);
}catch(ZxlNftException e){ }catch(ZxlNftException e){
return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage()); return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage());
}catch(Exception e){
return ZxlnftResponseDto.failure(ZxlErrorEnum.SERVER_INNER_ERROR.getCode(),ZxlErrorEnum.SERVER_INNER_ERROR.getMsg());
} }
return ZxlnftResponseDto.success(respDto); return ZxlnftResponseDto.success(respDto);
} }
...@@ -423,6 +458,8 @@ public class ZxlnftSdkUtil { ...@@ -423,6 +458,8 @@ public class ZxlnftSdkUtil {
BeanUtil.copy(resp,respDto); BeanUtil.copy(resp,respDto);
}catch(ZxlNftException e){ }catch(ZxlNftException e){
return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage()); return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage());
}catch(Exception e){
return ZxlnftResponseDto.failure(ZxlErrorEnum.SERVER_INNER_ERROR.getCode(),ZxlErrorEnum.SERVER_INNER_ERROR.getMsg());
} }
return ZxlnftResponseDto.success(respDto); return ZxlnftResponseDto.success(respDto);
} }
...@@ -440,6 +477,8 @@ public class ZxlnftSdkUtil { ...@@ -440,6 +477,8 @@ public class ZxlnftSdkUtil {
BeanUtil.copy(resp,respDto); BeanUtil.copy(resp,respDto);
}catch(ZxlNftException e){ }catch(ZxlNftException e){
return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage()); return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage());
}catch(Exception e){
return ZxlnftResponseDto.failure(ZxlErrorEnum.SERVER_INNER_ERROR.getCode(),ZxlErrorEnum.SERVER_INNER_ERROR.getMsg());
} }
return ZxlnftResponseDto.success(respDto); return ZxlnftResponseDto.success(respDto);
} }
...@@ -467,6 +506,8 @@ public class ZxlnftSdkUtil { ...@@ -467,6 +506,8 @@ public class ZxlnftSdkUtil {
BeanUtil.copy(resp,respDto); BeanUtil.copy(resp,respDto);
}catch(ZxlNftException e){ }catch(ZxlNftException e){
return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage()); return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage());
}catch(Exception e){
return ZxlnftResponseDto.failure(ZxlErrorEnum.SERVER_INNER_ERROR.getCode(),ZxlErrorEnum.SERVER_INNER_ERROR.getMsg());
} }
return ZxlnftResponseDto.success(respDto); return ZxlnftResponseDto.success(respDto);
} }
...@@ -496,6 +537,8 @@ public class ZxlnftSdkUtil { ...@@ -496,6 +537,8 @@ public class ZxlnftSdkUtil {
BeanUtil.copy(resp,respDto); BeanUtil.copy(resp,respDto);
}catch(ZxlNftException e){ }catch(ZxlNftException e){
return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage()); return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage());
}catch(Exception e){
return ZxlnftResponseDto.failure(ZxlErrorEnum.SERVER_INNER_ERROR.getCode(),ZxlErrorEnum.SERVER_INNER_ERROR.getMsg());
} }
return ZxlnftResponseDto.success(respDto); return ZxlnftResponseDto.success(respDto);
} }
...@@ -516,6 +559,8 @@ public class ZxlnftSdkUtil { ...@@ -516,6 +559,8 @@ public class ZxlnftSdkUtil {
BeanUtil.copy(resp,respDto); BeanUtil.copy(resp,respDto);
}catch(ZxlNftException e){ }catch(ZxlNftException e){
return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage()); return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage());
}catch(Exception e){
return ZxlnftResponseDto.failure(ZxlErrorEnum.SERVER_INNER_ERROR.getCode(),ZxlErrorEnum.SERVER_INNER_ERROR.getMsg());
} }
return ZxlnftResponseDto.success(respDto); return ZxlnftResponseDto.success(respDto);
} }
...@@ -533,6 +578,8 @@ public class ZxlnftSdkUtil { ...@@ -533,6 +578,8 @@ public class ZxlnftSdkUtil {
BeanUtil.copy(resp,respDto); BeanUtil.copy(resp,respDto);
}catch(ZxlNftException e){ }catch(ZxlNftException e){
return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage()); return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage());
}catch(Exception e){
return ZxlnftResponseDto.failure(ZxlErrorEnum.SERVER_INNER_ERROR.getCode(),ZxlErrorEnum.SERVER_INNER_ERROR.getMsg());
} }
return ZxlnftResponseDto.success(respDto); return ZxlnftResponseDto.success(respDto);
} }
...@@ -550,6 +597,8 @@ public class ZxlnftSdkUtil { ...@@ -550,6 +597,8 @@ public class ZxlnftSdkUtil {
BeanUtil.copy(resp,respDto); BeanUtil.copy(resp,respDto);
}catch(ZxlNftException e){ }catch(ZxlNftException e){
return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage()); return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage());
}catch(Exception e){
return ZxlnftResponseDto.failure(ZxlErrorEnum.SERVER_INNER_ERROR.getCode(),ZxlErrorEnum.SERVER_INNER_ERROR.getMsg());
} }
return ZxlnftResponseDto.success(respDto); return ZxlnftResponseDto.success(respDto);
} }
...@@ -567,6 +616,8 @@ public class ZxlnftSdkUtil { ...@@ -567,6 +616,8 @@ public class ZxlnftSdkUtil {
BeanUtil.copy(resp,respDto); BeanUtil.copy(resp,respDto);
}catch(ZxlNftException e){ }catch(ZxlNftException e){
return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage()); return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage());
}catch(Exception e){
return ZxlnftResponseDto.failure(ZxlErrorEnum.SERVER_INNER_ERROR.getCode(),ZxlErrorEnum.SERVER_INNER_ERROR.getMsg());
} }
return ZxlnftResponseDto.success(respDto); return ZxlnftResponseDto.success(respDto);
} }
...@@ -584,6 +635,8 @@ public class ZxlnftSdkUtil { ...@@ -584,6 +635,8 @@ public class ZxlnftSdkUtil {
BeanUtil.copy(resp,respDto); BeanUtil.copy(resp,respDto);
}catch(ZxlNftException e){ }catch(ZxlNftException e){
return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage()); return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage());
}catch(Exception e){
return ZxlnftResponseDto.failure(ZxlErrorEnum.SERVER_INNER_ERROR.getCode(),ZxlErrorEnum.SERVER_INNER_ERROR.getMsg());
} }
return ZxlnftResponseDto.success(respDto); return ZxlnftResponseDto.success(respDto);
} }
...@@ -604,6 +657,8 @@ public class ZxlnftSdkUtil { ...@@ -604,6 +657,8 @@ public class ZxlnftSdkUtil {
BeanUtil.copy(resp,respDto); BeanUtil.copy(resp,respDto);
}catch(ZxlNftException e){ }catch(ZxlNftException e){
return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage()); return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage());
}catch(Exception e){
return ZxlnftResponseDto.failure(ZxlErrorEnum.SERVER_INNER_ERROR.getCode(),ZxlErrorEnum.SERVER_INNER_ERROR.getMsg());
} }
return ZxlnftResponseDto.success(respDto); return ZxlnftResponseDto.success(respDto);
} }
...@@ -657,6 +712,8 @@ public class ZxlnftSdkUtil { ...@@ -657,6 +712,8 @@ public class ZxlnftSdkUtil {
BeanUtil.copy(resp,respDto); BeanUtil.copy(resp,respDto);
}catch(ZxlNftException e){ }catch(ZxlNftException e){
return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage()); return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage());
}catch(Exception e){
return ZxlnftResponseDto.failure(ZxlErrorEnum.SERVER_INNER_ERROR.getCode(),ZxlErrorEnum.SERVER_INNER_ERROR.getMsg());
} }
return ZxlnftResponseDto.success(respDto); return ZxlnftResponseDto.success(respDto);
} }
...@@ -676,6 +733,8 @@ public class ZxlnftSdkUtil { ...@@ -676,6 +733,8 @@ public class ZxlnftSdkUtil {
BeanUtil.copy(resp,respDto); BeanUtil.copy(resp,respDto);
}catch(ZxlNftException e){ }catch(ZxlNftException e){
return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage()); return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage());
}catch(Exception e){
return ZxlnftResponseDto.failure(ZxlErrorEnum.SERVER_INNER_ERROR.getCode(),ZxlErrorEnum.SERVER_INNER_ERROR.getMsg());
} }
return ZxlnftResponseDto.success(respDto); return ZxlnftResponseDto.success(respDto);
} }
...@@ -693,6 +752,8 @@ public class ZxlnftSdkUtil { ...@@ -693,6 +752,8 @@ public class ZxlnftSdkUtil {
BeanUtil.copy(resp,respDto); BeanUtil.copy(resp,respDto);
}catch(ZxlNftException e){ }catch(ZxlNftException e){
return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage()); return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage());
}catch(Exception e){
return ZxlnftResponseDto.failure(ZxlErrorEnum.SERVER_INNER_ERROR.getCode(),ZxlErrorEnum.SERVER_INNER_ERROR.getMsg());
} }
return ZxlnftResponseDto.success(respDto); return ZxlnftResponseDto.success(respDto);
} }
...@@ -710,6 +771,8 @@ public class ZxlnftSdkUtil { ...@@ -710,6 +771,8 @@ public class ZxlnftSdkUtil {
BeanUtil.copy(resp,respDto); BeanUtil.copy(resp,respDto);
}catch(ZxlNftException e){ }catch(ZxlNftException e){
return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage()); return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage());
}catch(Exception e){
return ZxlnftResponseDto.failure(ZxlErrorEnum.SERVER_INNER_ERROR.getCode(),ZxlErrorEnum.SERVER_INNER_ERROR.getMsg());
} }
return ZxlnftResponseDto.success(respDto); return ZxlnftResponseDto.success(respDto);
} }
...@@ -756,6 +819,8 @@ public class ZxlnftSdkUtil { ...@@ -756,6 +819,8 @@ public class ZxlnftSdkUtil {
BeanUtil.copy(resp,respDto); BeanUtil.copy(resp,respDto);
}catch(ZxlNftException e){ }catch(ZxlNftException e){
return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage()); return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage());
}catch(Exception e){
return ZxlnftResponseDto.failure(ZxlErrorEnum.SERVER_INNER_ERROR.getCode(),ZxlErrorEnum.SERVER_INNER_ERROR.getMsg());
} }
return ZxlnftResponseDto.success(respDto); return ZxlnftResponseDto.success(respDto);
} }
...@@ -775,10 +840,11 @@ public class ZxlnftSdkUtil { ...@@ -775,10 +840,11 @@ public class ZxlnftSdkUtil {
BeanUtil.copy(resp,respDto); BeanUtil.copy(resp,respDto);
}catch(ZxlNftException e){ }catch(ZxlNftException e){
return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage()); return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage());
}catch(Exception e){
return ZxlnftResponseDto.failure(ZxlErrorEnum.SERVER_INNER_ERROR.getCode(),ZxlErrorEnum.SERVER_INNER_ERROR.getMsg());
} }
return ZxlnftResponseDto.success(respDto); return ZxlnftResponseDto.success(respDto);
} }
public ZxlnftResponseDto<Nft036InfoRespDto> nft036Info(Nft036InfoReqDto reqDto){ public ZxlnftResponseDto<Nft036InfoRespDto> nft036Info(Nft036InfoReqDto reqDto){
/** /**
* 构造请求 * 构造请求
...@@ -809,6 +875,8 @@ public class ZxlnftSdkUtil { ...@@ -809,6 +875,8 @@ public class ZxlnftSdkUtil {
BeanUtil.copy(resp,respDto); BeanUtil.copy(resp,respDto);
}catch(ZxlNftException e){ }catch(ZxlNftException e){
return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage()); return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage());
}catch(Exception e){
return ZxlnftResponseDto.failure(ZxlErrorEnum.SERVER_INNER_ERROR.getCode(),ZxlErrorEnum.SERVER_INNER_ERROR.getMsg());
} }
return ZxlnftResponseDto.success(respDto); return ZxlnftResponseDto.success(respDto);
} }
...@@ -826,6 +894,8 @@ public class ZxlnftSdkUtil { ...@@ -826,6 +894,8 @@ public class ZxlnftSdkUtil {
BeanUtil.copy(resp,respDto); BeanUtil.copy(resp,respDto);
}catch(ZxlNftException e){ }catch(ZxlNftException e){
return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage()); return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage());
}catch(Exception e){
return ZxlnftResponseDto.failure(ZxlErrorEnum.SERVER_INNER_ERROR.getCode(),ZxlErrorEnum.SERVER_INNER_ERROR.getMsg());
} }
return ZxlnftResponseDto.success(respDto); return ZxlnftResponseDto.success(respDto);
} }
...@@ -843,6 +913,8 @@ public class ZxlnftSdkUtil { ...@@ -843,6 +913,8 @@ public class ZxlnftSdkUtil {
BeanUtil.copy(resp,respDto); BeanUtil.copy(resp,respDto);
}catch(ZxlNftException e){ }catch(ZxlNftException e){
return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage()); return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage());
}catch(Exception e){
return ZxlnftResponseDto.failure(ZxlErrorEnum.SERVER_INNER_ERROR.getCode(),ZxlErrorEnum.SERVER_INNER_ERROR.getMsg());
} }
return ZxlnftResponseDto.success(respDto); return ZxlnftResponseDto.success(respDto);
} }
...@@ -860,6 +932,8 @@ public class ZxlnftSdkUtil { ...@@ -860,6 +932,8 @@ public class ZxlnftSdkUtil {
BeanUtil.copy(resp,respDto); BeanUtil.copy(resp,respDto);
}catch(ZxlNftException e){ }catch(ZxlNftException e){
return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage()); return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage());
}catch(Exception e){
return ZxlnftResponseDto.failure(ZxlErrorEnum.SERVER_INNER_ERROR.getCode(),ZxlErrorEnum.SERVER_INNER_ERROR.getMsg());
} }
return ZxlnftResponseDto.success(respDto); return ZxlnftResponseDto.success(respDto);
} }
...@@ -877,6 +951,8 @@ public class ZxlnftSdkUtil { ...@@ -877,6 +951,8 @@ public class ZxlnftSdkUtil {
BeanUtil.copy(resp,respDto); BeanUtil.copy(resp,respDto);
}catch(ZxlNftException e){ }catch(ZxlNftException e){
return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage()); return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage());
}catch(Exception e){
return ZxlnftResponseDto.failure(ZxlErrorEnum.SERVER_INNER_ERROR.getCode(),ZxlErrorEnum.SERVER_INNER_ERROR.getMsg());
} }
return ZxlnftResponseDto.success(respDto); return ZxlnftResponseDto.success(respDto);
} }
...@@ -894,6 +970,8 @@ public class ZxlnftSdkUtil { ...@@ -894,6 +970,8 @@ public class ZxlnftSdkUtil {
BeanUtil.copy(resp,respDto); BeanUtil.copy(resp,respDto);
}catch(ZxlNftException e){ }catch(ZxlNftException e){
return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage()); return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage());
}catch(Exception e){
return ZxlnftResponseDto.failure(ZxlErrorEnum.SERVER_INNER_ERROR.getCode(),ZxlErrorEnum.SERVER_INNER_ERROR.getMsg());
} }
return ZxlnftResponseDto.success(respDto); return ZxlnftResponseDto.success(respDto);
} }
...@@ -928,6 +1006,8 @@ public class ZxlnftSdkUtil { ...@@ -928,6 +1006,8 @@ public class ZxlnftSdkUtil {
BeanUtil.copy(resp,respDto); BeanUtil.copy(resp,respDto);
}catch(ZxlNftException e){ }catch(ZxlNftException e){
return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage()); return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage());
}catch(Exception e){
return ZxlnftResponseDto.failure(ZxlErrorEnum.SERVER_INNER_ERROR.getCode(),ZxlErrorEnum.SERVER_INNER_ERROR.getMsg());
} }
return ZxlnftResponseDto.success(respDto); return ZxlnftResponseDto.success(respDto);
} }
...@@ -948,6 +1028,8 @@ public class ZxlnftSdkUtil { ...@@ -948,6 +1028,8 @@ public class ZxlnftSdkUtil {
BeanUtil.copy(resp,respDto); BeanUtil.copy(resp,respDto);
}catch(ZxlNftException e){ }catch(ZxlNftException e){
return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage()); return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage());
}catch(Exception e){
return ZxlnftResponseDto.failure(ZxlErrorEnum.SERVER_INNER_ERROR.getCode(),ZxlErrorEnum.SERVER_INNER_ERROR.getMsg());
} }
return ZxlnftResponseDto.success(respDto); return ZxlnftResponseDto.success(respDto);
} }
...@@ -968,6 +1050,8 @@ public class ZxlnftSdkUtil { ...@@ -968,6 +1050,8 @@ public class ZxlnftSdkUtil {
BeanUtil.copy(resp,respDto); BeanUtil.copy(resp,respDto);
}catch(ZxlNftException e){ }catch(ZxlNftException e){
return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage()); return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage());
}catch(Exception e){
return ZxlnftResponseDto.failure(ZxlErrorEnum.SERVER_INNER_ERROR.getCode(),ZxlErrorEnum.SERVER_INNER_ERROR.getMsg());
} }
return ZxlnftResponseDto.success(respDto); return ZxlnftResponseDto.success(respDto);
} }
...@@ -985,6 +1069,8 @@ public class ZxlnftSdkUtil { ...@@ -985,6 +1069,8 @@ public class ZxlnftSdkUtil {
BeanUtil.copy(resp,respDto); BeanUtil.copy(resp,respDto);
}catch(ZxlNftException e){ }catch(ZxlNftException e){
return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage()); return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage());
}catch(Exception e){
return ZxlnftResponseDto.failure(ZxlErrorEnum.SERVER_INNER_ERROR.getCode(),ZxlErrorEnum.SERVER_INNER_ERROR.getMsg());
} }
return ZxlnftResponseDto.success(respDto); return ZxlnftResponseDto.success(respDto);
} }
...@@ -1002,6 +1088,8 @@ public class ZxlnftSdkUtil { ...@@ -1002,6 +1088,8 @@ public class ZxlnftSdkUtil {
BeanUtil.copy(resp,respDto); BeanUtil.copy(resp,respDto);
}catch(ZxlNftException e){ }catch(ZxlNftException e){
return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage()); return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage());
}catch(Exception e){
return ZxlnftResponseDto.failure(ZxlErrorEnum.SERVER_INNER_ERROR.getCode(),ZxlErrorEnum.SERVER_INNER_ERROR.getMsg());
} }
return ZxlnftResponseDto.success(respDto); return ZxlnftResponseDto.success(respDto);
} }
...@@ -1019,6 +1107,8 @@ public class ZxlnftSdkUtil { ...@@ -1019,6 +1107,8 @@ public class ZxlnftSdkUtil {
BeanUtil.copy(resp,respDto); BeanUtil.copy(resp,respDto);
}catch(ZxlNftException e){ }catch(ZxlNftException e){
return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage()); return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage());
}catch(Exception e){
return ZxlnftResponseDto.failure(ZxlErrorEnum.SERVER_INNER_ERROR.getCode(),ZxlErrorEnum.SERVER_INNER_ERROR.getMsg());
} }
return ZxlnftResponseDto.success(respDto); return ZxlnftResponseDto.success(respDto);
} }
...@@ -1036,6 +1126,8 @@ public class ZxlnftSdkUtil { ...@@ -1036,6 +1126,8 @@ public class ZxlnftSdkUtil {
BeanUtil.copy(resp,respDto); BeanUtil.copy(resp,respDto);
}catch(ZxlNftException e){ }catch(ZxlNftException e){
return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage()); return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage());
}catch(Exception e){
return ZxlnftResponseDto.failure(ZxlErrorEnum.SERVER_INNER_ERROR.getCode(),ZxlErrorEnum.SERVER_INNER_ERROR.getMsg());
} }
return ZxlnftResponseDto.success(respDto); return ZxlnftResponseDto.success(respDto);
} }
...@@ -1053,6 +1145,8 @@ public class ZxlnftSdkUtil { ...@@ -1053,6 +1145,8 @@ public class ZxlnftSdkUtil {
BeanUtil.copy(resp,respDto); BeanUtil.copy(resp,respDto);
}catch(ZxlNftException e){ }catch(ZxlNftException e){
return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage()); return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage());
}catch(Exception e){
return ZxlnftResponseDto.failure(ZxlErrorEnum.SERVER_INNER_ERROR.getCode(),ZxlErrorEnum.SERVER_INNER_ERROR.getMsg());
} }
return ZxlnftResponseDto.success(respDto); return ZxlnftResponseDto.success(respDto);
} }
...@@ -1070,6 +1164,8 @@ public class ZxlnftSdkUtil { ...@@ -1070,6 +1164,8 @@ public class ZxlnftSdkUtil {
BeanUtil.copy(resp,respDto); BeanUtil.copy(resp,respDto);
}catch(ZxlNftException e){ }catch(ZxlNftException e){
return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage()); return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage());
}catch(Exception e){
return ZxlnftResponseDto.failure(ZxlErrorEnum.SERVER_INNER_ERROR.getCode(),ZxlErrorEnum.SERVER_INNER_ERROR.getMsg());
} }
return ZxlnftResponseDto.success(respDto); return ZxlnftResponseDto.success(respDto);
} }
...@@ -1087,6 +1183,8 @@ public class ZxlnftSdkUtil { ...@@ -1087,6 +1183,8 @@ public class ZxlnftSdkUtil {
BeanUtil.copy(resp,respDto); BeanUtil.copy(resp,respDto);
}catch(ZxlNftException e){ }catch(ZxlNftException e){
return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage()); return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage());
}catch(Exception e){
return ZxlnftResponseDto.failure(ZxlErrorEnum.SERVER_INNER_ERROR.getCode(),ZxlErrorEnum.SERVER_INNER_ERROR.getMsg());
} }
return ZxlnftResponseDto.success(respDto); return ZxlnftResponseDto.success(respDto);
} }
...@@ -1104,6 +1202,8 @@ public class ZxlnftSdkUtil { ...@@ -1104,6 +1202,8 @@ public class ZxlnftSdkUtil {
BeanUtil.copy(resp,respDto); BeanUtil.copy(resp,respDto);
}catch(ZxlNftException e){ }catch(ZxlNftException e){
return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage()); return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage());
}catch(Exception e){
return ZxlnftResponseDto.failure(ZxlErrorEnum.SERVER_INNER_ERROR.getCode(),ZxlErrorEnum.SERVER_INNER_ERROR.getMsg());
} }
return ZxlnftResponseDto.success(respDto); return ZxlnftResponseDto.success(respDto);
} }
...@@ -1132,6 +1232,8 @@ public class ZxlnftSdkUtil { ...@@ -1132,6 +1232,8 @@ public class ZxlnftSdkUtil {
BeanUtil.copy(resp,respDto); BeanUtil.copy(resp,respDto);
}catch(ZxlNftException e){ }catch(ZxlNftException e){
return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage()); return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage());
}catch(Exception e){
return ZxlnftResponseDto.failure(ZxlErrorEnum.SERVER_INNER_ERROR.getCode(),ZxlErrorEnum.SERVER_INNER_ERROR.getMsg());
} }
return ZxlnftResponseDto.success(respDto); return ZxlnftResponseDto.success(respDto);
} }
......
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