Authored by qinchao

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

@@ -224,8 +224,14 @@ public class TradeBillsServiceImpl implements ITradeBillsService { @@ -224,8 +224,14 @@ public class TradeBillsServiceImpl implements ITradeBillsService {
224 LOGGER.info("call ufo-RealNameAuthorize4PlatformController userRealNameAuthorize.getAliPayAccount interface is {}, result is {}", jsonObject.toJSONString()); 224 LOGGER.info("call ufo-RealNameAuthorize4PlatformController userRealNameAuthorize.getAliPayAccount interface is {}, result is {}", jsonObject.toJSONString());
225 if(200==jsonObject.getIntValue("code")){ 225 if(200==jsonObject.getIntValue("code")){
226 JSONObject data=jsonObject.getJSONObject("data"); 226 JSONObject data=jsonObject.getJSONObject("data");
227 - if(data!=null&&data.get("alipayAccount")!=null){ 227 + if(data!=null){
  228 + if(data.get("alipayUid")!=null&&StringUtils.isNotBlank(data.getString("alipayUid"))){
  229 + return data.getString("alipayUid");
  230 + }else if(data.get("alipayAccount")!=null&&StringUtils.isNotBlank(data.getString("alipayAccount"))){
228 return data.getString("alipayAccount"); 231 return data.getString("alipayAccount");
  232 + }else{
  233 + return "";
  234 + }
229 } 235 }
230 } 236 }
231 return ""; 237 return "";