保存设备信息

请求URL:

  • /saveDevice

请求方式:

  • POST

请求头

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

参数:

参数名 必选 类型 说明
appId 是 string App唯一标识
udid 是 string 唯一设备ID
vpn 否 bool 客户端是否开启了vpn
deviceName 否 string 设备名称
systemName 否 string 系统名称
systemVersion 否 string 系统版本
language 否 string 当前使用的语言
templateLanguage 否 string 模版语言
timezone 否 string 时区
appVersion 否 string 应用版本
networkOperator 否 string 当前网络运营商
simOperator 否 string SIM卡所属运营商
inputLanguage 否 string 输入法语言("zh-TW", "zh-CN", "zh-HK", "zh")
hasWxOrQQ 否 bool 安装的app(包含微信, QQ)
installReferrer 否 string 用户来源 referrer
gaid 否 string 广告标识ID
checkUserRole 否 bool 检测用户身份(无token时生效)

返回示例

{
    "code": 200,
    "msg": "SUCCESS",
    "data": {
        "accessToken": "36b8fcf01558cbea6acde07aae67a2f9",
        "activeUrl": "",
        "appUpdate": {
            "content": "fix bugs...\nadoqndfnjqj12132848123414121 😊           \n请问放弃我发疯啊师傅说的     ;,‘/,/,。’",
            "force": false,
            "link": "https://www.baidu.com/",
            "version": "0.0.9"
        },
        "contactUs": "https://discord.gg/hHCqMp8Bg4",
        "control": {
            "isCheck": true
        },
        "freeBalance": 28,
        "isNewDevice": false,
        "newAppInfo": {
            "schema": "vivipic",
            "enabled": true,
            "downloadNewUrl": "https://play.google.com/details?id=com.aipicvideo.vivipic",
            "webUrl":""
        },
        "nextRefreshTime": 1776614460,
        "payBalance": 0,
        "purchaseVideoUrl": "https://muyuhan.s3.amazonaws.com/facewap/video/purchase_s.mp4",
        "role": 7,
        "subscribeExpired": 1796268149,
        "subscribePlan": "com.weekly.wavy.7",
        "subscribeState": 2000,
        "systemConfig": {
            "payList": [
                {
                    "icon": "https://muyuhan.s3.amazonaws.com/facewap/payIcon/payermax.webp",
                    "title": "PayerMax",
                    "purchase": true,
                    "subscription": true
                }
            ]
        },
        "userId": "A10000000"
    }
}

返回参数说明

参数名 类型 说明
code int 状态码
msg string
data struct
-accessToken string 登录成功后的通讯令牌
-userId string 用户ID
-isNewDevice bool 是否新设备
-subscribeExpired int64 订阅过期时间
-subscribeState int 订阅状态:0-未订阅;2000-正常;2010-已取消;2020-已过期
-contactUs string 联系我们
-subscribePlan string 当前订阅产品ID
-nextRefreshTime int64 下次刷新时间(-1表示不再刷新)
-appUpdate struct 更新内容
--force bool 否强制用户更新
--link string 更新需要跳转的地址
--version string 更新的版本
--content string 更新的内容
--purchaseVideoUrl string 内购视频地址
--payBalance int 付费账号余额
--freeBalance int 免费账号余额
-systemConfig struct 系统设置
--payList Array 支付方式列表
---icon string 支付方式图标
---title string 支付方式标题
---purchase bool 内购支持
---subscription bool 订阅支持

备注

  • 注:审核不会下发 迁移配置 newAppInfo 与 更新配置 updateConfig

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

2021 © Live all right reserved,powered by Gitbook该文件修订时间: 2026-07-31 18:12:55

results matching ""

    No results matching ""