重写
This commit is contained in:
@@ -222,8 +222,9 @@
|
||||
|
||||
1. 先按 `provider_unionid` 查;没有再按 `provider_uid` 查
|
||||
2. 若 identity 已存在,则更新资料快照并写 `last_login_at`
|
||||
3. 若 identity 不存在,则创建一条新的 `wechat` identity
|
||||
4. 若是首次微信登录,还要同步创建 `pending_bind_phone` 的 `user_account`
|
||||
3. 若本次是按 `provider_unionid` 命中,但 `provider_uid` 已变化,则必须把新的 `provider_uid` 一并回写为最新主映射
|
||||
4. 若 identity 不存在,则创建一条新的 `wechat` identity
|
||||
5. 若是首次微信登录,还要同步创建 `pending_bind_phone` 的 `user_account`
|
||||
|
||||
### 9.4 `POST /api/auth/wechat/bind-phone`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user