Authored by qinchao

fix bug 绑定支付宝时,返回的alipayUid有可能是invalid

... ... @@ -262,8 +262,8 @@ public class RealNameAuthorizeServiceImpl implements IRealNameAuthorizeService {
//3)调用成功--入库操作
String alipayUid = response.getUserId();
String nickName = response.getNickName();
if(StringUtils.isBlank(alipayUid)){
logger.warn("autoBindAliPayAccount error, alipayUid is blank! uid={},auth_code={},access_token={}",uid, auth_code,access_token);
if(StringUtils.isBlank(alipayUid)||"invalid".equals(alipayUid)){
logger.warn("autoBindAliPayAccount error, alipayUid is blank or invalid ! uid={},auth_code={},access_token={},alipayUid = {}",uid, auth_code,access_token,alipayUid);
throw new GatewayException(400, "支付宝绑定失败,请重试");
}
... ...