由于支付宝不属于默认的类别,所以使用自建方式进行关联注册:
leanUser.logIn(authData: aliAuthData(aliAuth),
platform: .custom("alipay")) { (result) in }
但是当我使用支付宝注册了账号后,再用微信进行注册,并绑定同一个支付宝时,却可以无障碍的绑定成功。
然后我再次使用Apple注册后,尝试绑定同一个支付宝,还是绑定成功。
但是Apple和微信就会返回137错误提示已经存在该账户,并返回相关信息。
请问是我使用的方式不对还是存在bug?
附录:由于不确定是否字段错误造成,同时使用了openid和uid进行标注,以下是三个账户的第三方登录信息:
账户一:
{
"weixin": {
"refresh_token": "67_CYjXGBEjX5MFQe8FmLub",
"scope": "snsapi_userinfo",
"openid": "oa38X6rDEifRJYu",
"access_token": "67_8tV8-bOjUHzxpd8P0W",
"expires_in": 7200
},
"alipay": {
"uid": "2088002461277",
"access_token": "kuaijieB753e1d3a4fd",
"expires_in": 1209600,
"scope": "SCOPE",
"openid": "2088002461277",
"refresh_token": "kuaijieB170c7fa163cf"
}
}
账户二:
{
"alipay": {
"uid": "2088002461277",
"access_token": "kuaijieB753e1d3a4fd",
"openid": "2088002461277",
"expires_in": 1209600,
"refresh_token": "kuaijieB170c7fa163cf",
"scope": "SCOPE"
}
}
账户三:
{
"lc_apple": {
"uid": "000666.f6545c78dd904",
"access_token": "a397b89198d2e44f8a9b",
"token_type": "Bearer",
"expires_in": 3600,
"refresh_token": "r77910845da1c41ac8dabcfe"
},
"alipay": {
"openid": "2088002461277",
"access_token": "kuaijieB753e1d3a4fd",
"expires_in": 1209600,
"scope": "SCOPE",
"refresh_token": "kuaijieB170c7fa163cf",
"uid": "2088002461277"
}
}