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

Commit b59fd3a4 authored by anjiabin's avatar anjiabin

至信链异常处理

parent f38f88bc
......@@ -2,6 +2,7 @@ package com.liquidnet.common.third.zxlnft.biz;
import com.alibaba.fastjson.JSONObject;
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.exception.ZxlNftException;
import com.liquidnet.common.third.zxlnft.service.WalletSdkService;
......@@ -83,7 +84,21 @@ public class ZxlnftBiz {
}
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){
......
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