Authored by qinchao

支付宝绑定只允许手机或者邮箱

... ... @@ -84,6 +84,10 @@ public class RealNameAuthorizeController {
throw new GatewayException(400, "支付宝账号、姓名不能为空!");
}
if(!HideDataUtil.isEmail(reqVO.getAlipayAccount())&&!HideDataUtil.isPhone(reqVO.getAlipayAccount())){
throw new GatewayException(400, "支付宝账号格式不正确,只允许邮箱或者手机号!");
}
//(2) 校验用户id
if(reqVO.getUid()<=0){
throw new GatewayException(400, "uid参数为空!");
... ...