document
API test

三方登录注册(暂时不调)

POST
/oauth//login/app/{type}

API description

一般type为googgle,则url为/oauth//login/app/google

Description or Example

+ Request > 根据谷歌返回给你的来传即可 ```json { "uuid": "xxx", // 必传 "source": "xxx", // 必传 "accessToken": "xxx", "expirein": 12345, "nickName": "一直搜狐个", "avatar": "www.baidu.com", "location": "location", "gender": "unknown", "email": "123456789@qq.com" // 注意如果注册时候填的邮箱和这个不匹配,则不能绑定成功,这个需要前端给下提示 } ``` + Response ```json { "code": 200, "msg": "成功", "result": { "uid": 0, "token": null, "sid": 12345 // 第一次三方登录才有,然后立即转普通注册 } } ``` # 转普通注册,注意将sid带上