Skip to content

wx_qr_login 接口调整 #85

@Moicen

Description

@Moicen

目前 wx_qr_login 接口在用户不存在的时候回报错返回失败

let user = HtyUser::find_by_union_id(&union_id, extract_conn(fetch_db_conn(&db_pool)?).deref_mut())?;

针对自动注册需求 ,可以选择如下其一做修改:

  1. 先检查用户是否已注册,如未注册,则这里直接进行注册操作,初始状态disabled
  2. 如用户不存在,返回unionid给前端,前端再调注册接口注册

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions