保存设备信息

请求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 应用版本
inputLanguage 否 string 输入法语言("zh-TW", "zh-CN", "zh-HK", "zh")
hasWxOrQQ 否 bool 安装的app(包含微信, QQ)

返回示例

{
    "code": 200,
    "msg": "SUCCESS",
    "data": {
        "accessToken": "ea9a201564ef56df7c2b40570d241086",
        "appUpdate": {
            "content": "tttttt65tgt",
            "force": false,
            "link": "https://play.google.com/store/apps/details?id=com.aichat.sweetsai2025",
            "version": "1.0.9"
        },
        "config": {
            "advertiseConfig": {
                "switch": true,
                "interval": 50,
                "playCount": 5
            },
            "msgCost": 5,
            "videoCreatePrice": 50,
            "msgImgCost": 4,
            "msgImgCount": 1,
            "msgVideoCountWeek": 2,
            "showScenario": false,
            "systemConfig": {
                "perspectiveSwitch": true,
                "literaryStyleSwitch": true
            }
            "strengthPrice": 2,
            "strengthMax": 3,
            "strengthBuy": 5
        },
        "contactUs": "https://discord.gg/WNTyxU5mHk",
        "control": {
            "isCheck": true
        },
        "packageFirst": {
            "id": 135,
            "price": 499,
            "amount": 200,
            "giftAmount": 0,
            "amountFestival": 0,
            "giftAmountFestival": 0,
            "productId": "com.coupleuai.chat.app.11",
            "limitBuy": 1,
            "type": 0,
            "channel": 0,
            "originalPrice": 3326,
            "firstDouble": 0,
            "firstDoubleNo": 0,
            "createdAt": 1766963085,
            "updatedAt": 1767580069
        },
        "pageIndex": 0,
        "reportLost": "https://forms.gle/6c5dh2JpfbEcZfST8",
        "role": 7,
        "userId": "A260122016769"
    }
}

返回参数说明

参数名 类型 说明
code int 状态码
msg string
data struct
-accessToken string 登录成功后的通讯令牌
-userId int 用户ID
-uID string 美化ID
-pageIndex uint8 初次进入页面:1-生图页;2-画廊页 是否强制弹窗1:弹 其他0,2等不弹
-contactUs string 联系我们
-reportLost string 掉单反馈
-config struct 全局配置
--msgCost int 发消息消耗钻石数
--msgImgCost int 消息生图价格
--videoCreatePrice int 消息生视频价格
--msgImgCount int 消息生图次数
--msgVideoCountDay int 当日生视频次数
--advertiseConfig struct 广告配置
---switch bool 广告配置开关
---playCount int 广告播放次数
---interval int 广告播放间隔(秒)
--systemConfig struct 系统设置
---perspectiveSwitch bool 聊天视角开关
---literaryStyleSwitch bool 文风开关开关
--strengthPrice struct 体力售价(钻石)
--strengthMax struct 体力上限
--strengthBuy struct 单次购买体力数
-roleFreeList array 免费角色分类数组(角色卡的pid字段在此数组内即为免费角色)
-appUpdate struct 更新内容
--force bool 否强制用户更新
--link string 更新需要跳转的地址
--version string 更新的版本
--content string 更新的内容
-packageFirst struct 首充套餐
--id int 套餐ID
--price int 套餐价格(单位:分)
--amount int 钻石数
--giftAmount int 赠送钻石数
--productId string 内购产品ID

备注

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

2021 © Live all right reserved,powered by Gitbook该文件修订时间: 2026-03-26 15:40:17

results matching ""

    No results matching ""