保存设备信息

请求URL:

  • /candyGFSaveDevice

请求方式:

  • 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": "cbedee6617106c8516189ec58726ad78",
        "appUpdate": {
            "content": "fix bugs...",
            "force": true,
            "link": "https://apps.apple.com/us/app/ai-pic-master-anime-art/id6745702417",
            "version": "1.3.1"
        },
        "config": {
            "msgCost": 5
        },
        "contactUs": "https://discord.gg/hHCqMp8Bg4",
        "reportLost":   "https://forms.gle/6c5dh2JpfbEcZfST8",
        "control": {
            "isCheck": true
        },
        "packageFirst": {
            "id": 1,
            "price": 199,
            "amount": 200,
            "giftAmount": 50,
            "productId": "com.coupleuai.chat.app.1",
            "limitBuy": 1,
            "type": 1,
            "originalPrice": 0,
            "createdAt": 1745717444,
            "updatedAt": 1753925316
        },
        "pageIndex": 1,
        "role": 0,
        "userId": "A10000007"
    }
}

返回参数说明

参数名 类型 说明
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 发消息消耗钻石数
-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该文件修订时间: 2025-11-04 13:07:06

results matching ""

    No results matching ""