Authored by qinchao

获取支付宝信息,优先获取支付宝id,其次支付宝账号

... ... @@ -224,8 +224,14 @@ public class TradeBillsServiceImpl implements ITradeBillsService {
LOGGER.info("call ufo-RealNameAuthorize4PlatformController userRealNameAuthorize.getAliPayAccount interface is {}, result is {}", jsonObject.toJSONString());
if(200==jsonObject.getIntValue("code")){
JSONObject data=jsonObject.getJSONObject("data");
if(data!=null&&data.get("alipayAccount")!=null){
return data.getString("alipayAccount");
if(data!=null){
if(data.get("alipayUid")!=null&&StringUtils.isNotBlank(data.getString("alipayUid"))){
return data.getString("alipayUid");
}else if(data.get("alipayAccount")!=null&&StringUtils.isNotBlank(data.getString("alipayAccount"))){
return data.getString("alipayAccount");
}else{
return "";
}
}
}
return "";
... ...