## Token 验证 ##
### 接口说明 ###
根据传入的token验证token是否有效,返回用户的相关信息
### 接口地址 ###
<pre>
/api/login/checkToken
</pre>
### 传递参数 ###
>参数类型:**POST**
| 必填|参数 | 类型 | 说明 |
|:-------------:|:-------------|:-------------|:-------------|
| token | true | string | 用户token(管理后台),非会员token |
---
### 返回参数 ###
>返回类型:**JSON**
| 参数 | 类型 | 说明 |
|:-------------:|:-------------|:-------------|
| code | int | 状态码,返回200表示调用成功 |
| msg | string | 操作信息 |
| code | json | 返回的json数据 |
### ###
<pre style="background:#222;color:#35b558">
{
"code": 200,
"data": {
"token": "B6A662AB3B9EFDBBB0891B40C2027352",
"user_info": {
"user_id": 1,
"user_code": "27483D4C-1A45-2865-9B8C-701EA265ED92",
"user_name": "admin",
"real_name": "超管",
"password": "14e1b600b1fd579f47433b88e8d85291",
"head_pic": "/uploads/default/20180515/c4d86ef4c589701e41760a07ecbfea10.jpg",
"email": null,
"mobile": null,
"branch_id": 0,
"access_key": "B6A662AB3B9EFDBBB0891B40C2027352",
"access_key_create_time": 1528176941,
"branch_code": null,
"branch_name": null
},
"role": [
{
"role_code": "1",
"role_name": "超级管理员"
}
],
"site": [],
"privilege": [
{
"privilege_code": "SiteManage",
"privilege_name": "站点>站点管理"
},
{
"privilege_code": "MemberManage",
"privilege_name": "会员>会员管理"
},
{
"privilege_code": "SystemUpdate",
"privilege_name": "系统>系统升级"
},
{
"privilege_code": "ComponentManage",
"privilege_name": "组件>组件管理"
},
{
"privilege_code": "DepartmentUserManage",
"privilege_name": "基础数据>部门、用户管理"
},
{
"privilege_code": "RoleManage",
"privilege_name": "基础数据>角色管理"
},
{
"privilege_code": "PrivilegeManage",
"privilege_name": "基础数据>权限管理"
},
{
"privilege_code": "ClassManage",
"privilege_name": "基础数据>分类管理"
}
],
"component": [
{
"component_code": "E5C56F2646F50B5EC5C613E9D430427E",
"component_name": "地图新闻1",
"component_key": "develop",
"developer_code": "0002670C1999235DE324746FF8AF2971",
"access_key": "",
"secret_key": "Member",
"index_version": "",
"admin_version": "1.1.1.1",
"app_code": "newsmapa01",
"create_time": 1545443321,
"company_name": "company",
"address": "wwwwww",
"tel": null,
"description": null,
"linkman": "1231weqw",
"note": null,
"component_pic": "/uploads/icon/2.png"
},
{
"component_code": "18A88AB07872B12D767B3BD654167AC9",
"component_name": "专题精选",
"component_key": "develop",
"developer_code": "0002670C1999235DE324746FF8AF2971",
"access_key": "",
"secret_key": "Member",
"index_version": "",
"admin_version": "2.2.2.2",
"app_code": "subjecta01",
"create_time": 1454345654,
"company_name": "wadawdwad",
"address": "awdwadwa",
"tel": null,
"description": null,
"linkman": "12dawda",
"note": null,
"component_pic": "/uploads/icon/37.png"
},
{
"component_code": "B2433C8761B4671553FE6A45C9DCC4CB",
"component_name": "会员管理",
"component_key": "system",
"developer_code": "0002670C1999235DE324746FF8AF2971",
"access_key": "",
"secret_key": "Video",
"index_version": "",
"admin_version": "",
"app_code": "member",
"create_time": 1545432123,
"company_name": "",
"address": "",
"tel": null,
"description": null,
"linkman": "",
"note": null,
"component_pic": "/uploads/icon/22.png"
},
{
"component_code": "5C13A6E742091B22A98A6F492EBC3740",
"component_name": "矩阵号",
"component_key": "develop",
"developer_code": "0002670C1999235DE324746FF8AF2971",
"access_key": "",
"secret_key": "Member",
"index_version": "",
"admin_version": "",
"app_code": "matrixa01",
"create_time": 1545432123,
"company_name": "",
"address": "",
"tel": null,
"description": null,
"linkman": "",
"note": null,
"component_pic": "/uploads/icon/18.png"
},
{
"component_code": "C5953A90CBA748A88DD3B276E6A2725B",
"component_name": "投票",
"component_key": "develop",
"developer_code": "0002670C1999235DE324746FF8AF2971",
"access_key": "",
"secret_key": null,
"index_version": null,
"admin_version": "1.0",
"app_code": "vote",
"create_time": 1545432123,
"company_name": null,
"address": null,
"tel": null,
"description": null,
"linkman": null,
"note": null,
"component_pic": "/uploads/icon/23.png"
},
{
"component_code": "85B8309028CD4A808DFE353B00C9A9AC",
"component_name": "领红包",
"component_key": "develop",
"developer_code": "0002670C1999235DE324746FF8AF2971",
"access_key": "",
"secret_key": null,
"index_version": null,
"admin_version": "1.0",
"app_code": "red",
"create_time": 1545432123,
"company_name": null,
"address": null,
"tel": null,
"description": null,
"linkman": null,
"note": null,
"component_pic": "/uploads/icon/25.png"
},
{
"component_code": "C488967B8270400CBCD4CF6B0A599274",
"component_name": "大转盘",
"component_key": "develop",
"developer_code": "0002670C1999235DE324746FF8AF2971",
"access_key": "",
"secret_key": null,
"index_version": null,
"admin_version": "1.0",
"app_code": "roll",
"create_time": 1545432123,
"company_name": null,
"address": null,
"tel": null,
"description": null,
"linkman": null,
"note": null,
"component_pic": "/uploads/icon/26.png"
},
{
"component_code": "BC49B0ED8C214EDCABA6E6F3C2D23058",
"component_name": "报名",
"component_key": "develop",
"developer_code": "0002670C1999235DE324746FF8AF2971",
"access_key": "",
"secret_key": null,
"index_version": null,
"admin_version": "1.0",
"app_code": "form",
"create_time": 1545432123,
"company_name": null,
"address": null,
"tel": null,
"description": null,
"linkman": null,
"note": null,
"component_pic": "/uploads/icon/27.png"
},
{
"component_code": "50564A2E6B204F9AADE1A4A52C13BF68",
"component_name": "签到",
"component_key": "develop",
"developer_code": "0002670C1999235DE324746FF8AF2971",
"access_key": "",
"secret_key": null,
"index_version": null,
"admin_version": "1.0",
"app_code": "sign",
"create_time": 1545432123,
"company_name": null,
"address": null,
"tel": null,
"description": null,
"linkman": null,
"note": null,
"component_pic": "/uploads/icon/28.png"
},
{
"component_code": "E29B1403654E42F499731ED3D23AA070",
"component_name": "微矩阵",
"component_key": "develop",
"developer_code": "0002670C1999235DE324746FF8AF2971",
"access_key": "",
"secret_key": null,
"index_version": null,
"admin_version": "1.0",
"app_code": "weijuzhen",
"create_time": 1545432123,
"company_name": null,
"address": null,
"tel": null,
"description": null,
"linkman": null,
"note": null,
"component_pic": "/uploads/icon/29.png"
}
]
},
"msg": "验证成功"
}
</pre>