1. 登录接口

接口名称 登录
功能描述 登录
请求地址 http://qy-ci.fdccloud.com/api/wzs/login?access_token=@access_token
请求方式 POST(HTTPS)

请求包结构

{
    "login_type": 0,
    "user_code": "13800138000",
    "password": "888888",
    "tenant_code": "mysoft",
    "device_id": "@device_id",
    "device_token": "@device_token",
    "platform": "@platform ",
    "version_name": "3.1.5",
    "device_name": "iPhone4s ",
    "model": "iPhone10,1",
    "brand": "huawei",
    "os_version": "7.0.1 ",
    "push_channel": 1,
    "__language__":"zh-CN",

}

参数说明

参数 中文名 参数类型 说明
language 语言环境 String en-US,zh-CN
login_type 登录方式 int 0:手机号密码登录 1:验证码登录 2:帐号密码登录
user_code 账号 String 可以是手机号或者帐号
password 密码 String
tenant_code 企业代码 String
device_id 设备id String
device_token 消息推送token String
platform 平台类型 int 1:iOS 2:Android
version_name APP版本号 String 如 3.9.0
model 设备型号 String @Since3.6.2
brand 设备品牌 String @Since3.6.3
device_name 设备名称 String 梅义的iPhone6,MI8
os_version 操作系统版本 String 10.3.3,9.0
push_channel 推送渠道 int 1:apns推送,2:小米推送,3:华为推送,4:OPPO,5:VIVO 客户端如果没有传这个值android默认为2,ios默认为1,兼容老版本

返回结果

{
"success": 1,
"data": {
    "code": 1,
    "message": null,
    "user_info": {
        "name": "梅义",
        "avatar": "http: //xxx/yyy.png",
        "sex": 0,
        "forced_gesture": true,
        "forced_protected": true,
        "gesture_enable": true,
        "gesture_password": "xxxx",
        "gesture_time_interval": 5,
        "protected": true,
        "often_device": true,
        "wzs_user_id": "xxxxxxxx",
        "im": {
            "token": "12312312",
            "im_user_id": "12312312 ",
            "im_user_password": "aes加密后的密码",
            "enable": false,
            "discussion_type_enable": false,
            "associate_work_enable": false,
            "associate_work_link": "关联工作项的地址"
        },
        "id": "21312312",
        "phone": "15671712712",
        "tenant_id": "123333333333333",
        "tenant_logo_url": "https://xx.png",
        "tab_index": 0,
        "tenant_code": "mysoft_ci",
        "page_code": "200100",
        "erp_user_code": "meiy02",
        "tenant_name": "明源软件",
        "address_enable": true,
        "can_change_account_password": true,
        "change_account_password_url":"https:/x/y/z",
        "change_account_password_tip": "请在erp中修改密码",
        "cloud": {
            "host": "https://www.xxx.com:8080",
            "yzs_app_publish_url": "https://yzs-ci.fdccloud.com/pubnotice/pub-view/app-publish"
        },
        "belong_dept": [{
            " yzs_order_hierarchy_code ": "10000.10020.10001",
            "dept_name": "部门名称"
        }, {
            " yzs_order_hierarchy_code ": "10000.10022.10002",
            "dept_name": "部门名称"
        }],
        "setting_tel_password": true
    }
}

}

参数说明

参数 中文名 参数类型 说明
protected 是否开启账号保护 boolean True:开启 False:未开启
often_device 是否是常用设备 boolean True:是 False:否
phone 绑定的手机号 String
tab_index 首页定位标签索引 int
page_code 定位的首页标识(@Since 3.2.0) String 200100:消息 200101:常用功能 200200:工作台 appcode:具体到某个H5应用 200300:联系人 200400:我的
forced_gesture 企业是否开启了强制手势密码 boolean
gesture_ time interval 手势密码时间间隔 int 单位秒,无此字段默认为30秒
forced_protected 是否强制开启账号保护 boolean 默认false
forced_protected 是否强制开启账号保护 boolean 默认false
im.token IM token String @Since3.4.0
im.enable 是否开启IM功能 boolean @Since3.4.0
im.im_user_password IM密码 boolean @Since3.4.0 AES加密后的结果
address_enable 是否开启通讯录功能 boolean 默认true
can_change_account_password 是否可以修改密码 boolean
change_account_password_url 修改密码时跳转的地址 String
change_account_password_tip 不允许修改密码时的提示信息 String
discussion_type_enable 是否开启讨论组类型 boolean 默认false
associate_work_enable 是否开启关联工作项 boolean 默认false
setting_tel_password 是否设置了手机号密码 boolean
cloud.yzs_app_publish_url 云助手APP功能介绍网页地址 String
cloud.host 云助手云端域名地址 String 兼容私有云部署情况

results matching ""

    No results matching ""