文 档 中 心 / Document Center
搜索 管理中心
壹川接口文档V3
获取登录用户的用户详细信息
更新时间:2018-04-10 18:14:42   更新人员:叶洋   文档状态:完成 #24    测试接口
摘要
用户登录以后,在请求头中填入accesstoken后可使用此接口获取完整的用户资料信息。
  1. 接口基本信息
    接口名称:获取当前登录用户资料
    请求方法:GET
    接口地址:user/lguser
    登录验证:是
  2. 请求示例
    用户已经登录过,使用Access-token时用此接口可直接获取到用户信息。
    请求例子:
     
    apirq('user/lguser') 
    
    返回数据结果:
     
    {
        "code": 0,
        "msg": "ok",
        "time": "1523355199",
        "data": {
            "uid": "0000000000000001",
            "code": "U1000000",
            "utype": 1,
            "orgid": "1000000000000000",
            "username": "administrator",
            "status": 1,
            "nickname": "超级管理员",
            "head": "234d65df86fecb79",
            "sex": 1,
            "email": "549042814@qq.com",
            "mobile": "18200509877",
            "tel": "",
            "invite_code": "CF2678CC",
            "invite_code_from": "",
            "reg_ip": "127.0.0.1",
            "reg_time": "2017-01-12 15:58:12",
            "login": 216,
            "last_login_ip": "127.0.0.1",
            "last_login_time": "2018-04-10 10:19:24",
            "realname": "超级管理员",
            "realname_initials": "",
            "birthday": "",
            "qq": "",
            "ua": "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36",
            "remark": "",
            "orginfo": {
                "sys_id": "1000000000000000",
                "code": "S100000000",
                "country_id": 1,
                "province_id": 2,
                "city_id": 2,
                "district_id": 3,
                "street_id": 1,
                "lng": "2.000000",
                "lat": "3.000000",
                "name": "系统",
                "initials": "xt",
                "english_name": "system",
                "address": "成都",
                "contacts": "邓",
                "mobile": "13212345678",
                "tel": "",
                "fax": "",
                "email": "",
                "cover": "",
                "picture_list": "",
                "img_business_license": "",
                "img_transport_license": "",
                "img_corporation_idcard": "",
                "description": "",
                "remark": "",
                "otype_name": "系统"
            }
        }
    } 
    
本书创建于 2018-03-30 12:03:13 ?如有疑问,请联系技术人员