保存设备信息
请求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,
"showScenario": false,
"msgImgCost": 4,
"videoCreatePrice": 14,
"msgImgCount": 1,
"msgVideoCountDay": 2,
"advertiseConfig": {
"switch": true,
"interval": 50,
"playCount": 5,
"playPoint": [10, 30, 60]
},
"systemConfig": {
"perspectiveSwitch": true,
"literaryStyleSwitch": true
},
"strengthPrice": 2,
"strengthPriceNew": 0.5,
"strengthMax": 3,
"strengthBuy": 5,
"vipMsgTimes": 100,
"userMemoryLen": 400
},
"contactUs": "https://discord.gg/hHCqMp8Bg4",
"contactUsPrize": "https://discord.gg/hHCqMp8Bg4",
"contactEmail": "support@example.com",
"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 | |
| -contactUs | string | 联系我们 |
| -contactUsPrize | string | 愿望商店联系我们地址 |
| -contactEmail | string | 客服邮箱 |
| -reportLost | string | 掉单反馈 |
| data.config | object | 全局配置 |
| data.config.msgCost | int | 发消息消耗钻石数 |
| data.config.showScenario | bool | 是否展示场景功能;当前固定为 false |
| data.config.msgImgCost | int | 消息生图价格 |
| data.config.videoCreatePrice | int | 消息生视频价格 |
| data.config.msgImgCount | int | 设备累计生图次数 |
| data.config.msgVideoCountDay | int | 设备当日生视频次数 |
| data.config.advertiseConfig | object/null | 广告配置 |
| data.config.advertiseConfig.switch | bool | 广告开关 |
| data.config.advertiseConfig.playCount | int | 广告播放次数 |
| data.config.advertiseConfig.playPoint | int[] | 广告播放节点(分钟) |
| data.config.advertiseConfig.interval | int | 广告播放间隔(秒) |
| data.config.systemConfig | object/null | 系统设置 |
| data.config.systemConfig.perspectiveSwitch | bool | 聊天视角开关 |
| data.config.systemConfig.literaryStyleSwitch | bool | 文风开关 |
| data.config.strengthPrice | uint | 旧体力售价(钻石),保留用于兼容旧版客户端 |
| data.config.strengthPriceNew | number | 新体力售价(钻石),最多两位小数;服务端购买体力时按此字段计费 |
| data.config.strengthMax | uint | 体力上限 |
| data.config.strengthBuy | uint | 单次购买体力数 |
| data.config.vipMsgTimes | uint | VIP 角色不限发送时的消息次数配置 |
| data.config.userMemoryLen | 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 参数错误