## 手机号登陆
~~~[api]
post:/indexs.php/fangyi/Loginctr/byPhone
*openid=默认值#微信openid
*phone#手机号
*groupid#项目id
<<<
success
{
"code": 0,
"msg": "个人信息关联成功",
"data": {
"workerid": "20",
"weid": "2",
"groupid": "21",
"workertype": "3",
"name": "王五",
"phone": "13562555557",
"idcard": "410215235452021487",
"nativeplace": "河南郑州",
"istouch": "0",
"isnear": "0",
"health": "1",
"isremote": "0",
"startplace": null,
"transport": null,
"trannumber": null,
"returndate": null,
"roomid": "19",
"roomname": "302",
"reachdate": null,
"openid": "abc123",
"createtime": "1582096283",
'isAuth':[
0 => 'disinfection',#防疫消杀
1 => 'supplies',#防疫物资库存信息
2 => 'daily',#防疫日报汇总
3 => 'personnel',#异常人员管理
],
"isdel": "0"
}
}
---code=4002跳转至信息页,让用户补全健康信息
{
"code": 4002,
"msg": "请完善个人信息",
"data": {
"workerid": "28",
"weid": null,
"groupid": "21",
"workertype": "1",
"name": null,
"phone": "15611111111",
"idcard": null,
"nativeplace": null,
"istouch": "0",
"isnear": "0",
"health": "1",
"isremote": "0",
"startplace": null,
"transport": null,
"trannumber": null,
"returndate": null,
"roomid": null,
"roomname": null,
"reachdate": null,
"openid": "abc",
"createtime": null,
‘‘isAuth’’:[
]
"isdel": "0"
}
}
<<<
error
{
"code": -1,
"msg": "错误信息",
"data": []
}
~~~
---
**返回信息**
| 参数 | 参数类型 | 必须 | 说明|
| ----------- | ------------------------------ | ------------ | --- |
| workerid| string| yes |人员id|
| groupid| String| yes | 项目id|
| workertype| String| yes | 1:工人2:工作人员:3访客|
| name| String| yes | 员工姓名|
| phone| String| yes | 手机号|
| idcard| String| yes | 身份证号|
| nativeplace| String| yes | 籍贯|
| istouch| String| yes | 是否接触湖北或感染人员|
| isnear| String| yes | 是否在湖北停留过|
| health| String| yes | 1:健康2:发烧乏力干咳,3:其它|
| isremote| String| yes | 1从其他城市返回|
| startpalce| String| yes | 出发地|
| transport| String| yes | 交通工具|
| trannumber| String| yes | 车次|
| returndate| String| yes | 出发日期|
| roomid| String| yes | 房间id|
| roomname| String| yes | 房间名|
| reachdate| String| yes | 到达日期|
| openid| String| yes | 微信标识|
| createtime| String| yes | 创建时间|
| isAuth| array| yes | 前台模块权限 无权限为空数组,存在相关权限 数组中返回相关标识|