Skip to main content

查询注册状态(queryRegisterStatus)

queryRegisterStatus API 用于检查 LI PASS是否已经注册。

请求参数

参数类型描述备注
accountstring账号
邮件或手机号(暂不支持手机)
必填
account_typenumber账号类型
1:邮件
2:电话号码(暂时不支持)
必填
phone_area_codestring手机区号account_type 为 2 时必填

请求示例

accountApi.queryRegisterStatus(
{
account: 'xxx@gmail.com',
account_type: 1,
}
).then((res) => {
console.log(res);
});

返回参数

参数类型描述
retnumber返回代码
0:请求成功
!=0:请求失败,查看 msg 详细结果说明
msgstring结果说明
is_registernumber账号是否存在
0:不存在
1:存在
seqstring数据流消息序号

返回示例

{
is_register: 0,
msg: "Success",
ret: 0,
seq: "1638794583-0180225865-009373-0000146261",
}