保存设备信息

请求URL:

  • /saveDevice

请求方式:

  • POST

请求头

参数名 必选 类型 说明
Authorization 否 string 登录成功后的通讯令牌

参数:

参数名 必选 类型 说明
appId 是 string App唯一标识
udid 是 string 唯一设备ID
vpn 否 bool 客户端是否开启了vpn
deviceName 否 string 设备名称
systemName 否 string 系统名称
systemVersion 否 string 系统版本
language 否 string 当前使用的语言
timezone 否 string 时区
appVersion 否 string 应用版本

返回示例

{
    "code": 200,
    "msg": "SUCCESS",
    "data": {
        "accessToken": "36b8fcf01558cbea6acde07aae67a2f9",
        "appUpdate": {
            "content": "fix bugs...\nadoqndfnjqj12132848123414121 😊           \n请问放弃我发疯啊师傅说的     ;,‘/,/,。’",
            "force": false,
            "link": "https://www.baidu.com/",
            "version": "0.0.9"
        },
        "config": {
            "msgCost": 5
        },
        "contactUs": "https://discord.gg/WNTyxU5mHk",
        "control": {
            "isCheck": true
        },
        "pageIndex": 2,
        "role": 0,
        "userId": "A10000000"
    }
}

返回参数说明

参数名 类型 说明
code int 状态码
msg string
data struct
-accessToken string 登录成功后的通讯令牌
-userId int 用户ID
-uID string 美化ID
-pageIndex uint8 初次进入页面:1-生图页;2-画廊页
-contactUs string 联系我们
-config struct 全局配置
--msgCost int 发消息消耗钻石数
-appUpdate struct 更新内容
--force bool 否强制用户更新
--link string 更新需要跳转的地址
--version string 更新的版本
--content string 更新的内容

备注

错误码 510 系统错误 800 参数错误

2021 © Live all right reserved,powered by Gitbook该文件修订时间: 2025-08-18 13:40:45

results matching ""

    No results matching ""