## 獲取人員信息判斷是否登陸
~~~[api]
post:/indexs.php/fangyi/Workerctr/getWorkerInfo
*openid=默認值#微信openid
*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",
"groupname":"春天里項目",
"createtime": "1582096283",
"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,
"isdel": "0"
}
}
<<<
error
{
"code": 4001,
"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 | 創建時間|
|groupname|String|yes|項目名|
|department|String|yes|單位|