功能名称
api名称:isregister
调用:auth.isregister(req,res,param);
参数:param
param为对象,包含以下部分
{ "field":"phonenumber",//需要检查的参数名,如username,email,phonenumber等 "info":["18604758240"]//需要检查的参数值,务必已数组形式传参 } //或着是 { "loginid":""//不确定参数属于哪种类型时使用 }
返回值:
{ "total": 1,//所检索到的数据总数 "userinfo":[//检索到的用户详情 { "password": "a920cd6ec701952411d19c5611d19c56", "username": "user01", "resgtime": "2016-01-13T09:07:43.448Z", "role":["user"], "email": "unverified", "phonenumber": "18607158002", "_phonenumberchecked": "no", "_emailchecked": "no", "_status": "normal", "lang": "cn", "otherinfo":{}, "id": "2f5c2d324b27efb5dccebcd527803688"//用户的uid } ], "success": true//数据错误才为false,不论获取到用户还是获取不到都为true, }