Authored by qinchao

fix:打款失败原因,200 显示汉字

... ... @@ -56,8 +56,9 @@ public class TradeBillsController {
req.setOperateUname(userHelper.getUserName());
ApiResponse apiResponse=new ApiResponse();
LOGGER.info("TradeBillsController manualRefund call ufo-gateway.manualDealMon param is {}", req);
JSONObject jsonObject = serviceCaller.asyncCall("ufo-gateway.manualDealMon", req, JSONObject.class).get(5);
LOGGER.info("call ufo-gateway.manualDealMon interface is {}, result is {}", jsonObject.toJSONString());
LOGGER.info("TradeBillsController manualRefund call ufo-gateway.manualDealMon interface is {}, result is {}", jsonObject.toJSONString());
int resultCode=jsonObject.getIntValue("code");
if(200!=resultCode){
apiResponse.setCode(resultCode);
... ...
... ... @@ -113,7 +113,12 @@ public class TradeBillsServiceImpl implements ITradeBillsService {
//打款失败原因
if(100!=item.getTradeStatus()){
String failReason = TradeStatusEnum.getDescByCode(item.getTradeStatus());
resp.setTradeStatusDesc(StringUtils.isBlank(failReason)?String.valueOf(item.getTradeStatus()):failReason);
if("200".equals(failReason)){
resp.setTradeStatusDesc("打款失败");
}else{
resp.setTradeStatusDesc(StringUtils.isBlank(failReason)?String.valueOf(item.getTradeStatus()):failReason);
}
}
respList.add(resp);
... ...