文档
测试

设备初始化(!update)

POST
{{feifubao}}/api/others/init

接口描述

获取首页、启动海报、登录注册功能

请求参数

参数名
类型
描述
必填
manufacturer
string
设备生产厂商
必填
display
string
rom版本
必填
backup
int
备份编号
必填
identity
string
设备的唯一编号 (该字段不传值或为空 将不进行注册流程)
必填
brand
string
设备的品牌 (当identity传值时,该字段必填)
必填
model
string
设备型号 (注册或登录时的可选字段)
必填
version
string
设备版本编号 (注册或登录时的可选字段)
必填
memory
string
内存容量 (注册或登录时的可选字段)
必填
storage
string
存储容量 (注册或登录时的可选字段)
必填
disk
string
外置存储容量 (注册或登录时的可选字段)
必填
channel
string
渠道
必填
origin
string
溯源信息
必填

响应参数

参数名
类型
描述
必填
msg
string
必填
data
object
数据字典
必填
notice
array
跑马灯数据
必填
banner
array
轮播图
必填
picture
string
图片地址
必填
url
string
跳转url
必填
title
string
标题
必填
description
string
描述
必填
core
array
数核心应用
必填
title
string
应用名称
必填
picture
string
图片地址
必填
label
string
应用标识
必填
page
string
跳转页面标识
必填
id
int
应用编号
必填
enable
boolean
当前机型是否可以自助授权恢复
必填
comprehensive
array
数据列表 (数据格式与core相同)
必填
poster
string
启动页的海报地址
必填
token
string
当前机器注册或登录的用户令牌,如果未传入identity字段,该字段为空
必填
reject_authority
bool
是否已拒绝本地授权 true为已拒绝 false 未拒绝
可选
code
int
必填

响应示例

``` { "msg": "", "data": { "notice": [ "131****1082 购买了dsfsd 2分钟前", "137****2350 购买了聊天记录恢复 18分钟前", "133****6530 购买了年度会员 1分钟前", "131****1326 购买了初级工程师 1分钟前" ], "banner": [ { "picture": "http://transverter_assets.test/uploads/files/2020-04-23/4ab2e8f7f079eeabfbf79741bc2a4762.png", "url": null, "title": "首页顶部", "description": null } ], "core": [ { "title": "微信记录恢复", "picture": "http://transverter_assets.test//uploads/2020-04-01/15857323985e845b2eae7df.png", "label": "wx-discovery", "page": "wx-discovery", "id": 1, "enable": false }, { "title": "好友恢复", "picture": "http://transverter_assets.test//uploads/2020-04-01/15857324495e845b616f5be.png", "label": "friend", "page": "friend", "id": 6, "enable": false }, { "title": "图片恢复", "picture": "http://transverter_assets.test//uploads/2020-04-01/15857324215e845b456a49f.png", "label": "picture", "page": "picture", "id": 2, "enable": false }, { "title": "视频恢复", "picture": "http://transverter_assets.test//uploads/2020-04-01/15857324355e845b5362826.png", "label": "video", "page": "video", "id": 4, "enable": false }, { "title": "语音恢复", "picture": "http://transverter_assets.test//uploads/2020-04-01/15857324065e845b36a35f5.png", "label": "voice", "page": "voice1", "id": 3, "enable": false }, { "title": "附件恢复", "picture": "http://transverter_assets.test//uploads/2020-04-01/15857324425e845b5a731d5.png", "label": "file", "page": "file", "id": 5, "enable": false } ], "comprehensive": [ { "title": "添加好友", "picture": "http://transverter_assets.test//uploads/2020-04-01/15857324285e845b4c534e6.png", "label": "add-friends", "page": "add-friends", "id": 9, "enable": false }, { "title": "微信导出", "picture": "http://transverter_assets.test//uploads/2020-04-01/15857324155e845b3f5267a.png", "label": "export", "page": "export", "id": 8, "enable": false } ], "poster": "http://transverter_assets.test/uploads/images/2020-05-21/wpphirDZ53seovSCYQGa.jpeg", "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC9yZW5vdmF0aW9uLnRlc3RcL2FwaVwvb3RoZXJzXC9pbml0IiwiaWF0IjoxNTkwMDQwMzcyLCJleHAiOjE1OTA5MDQzNzIsIm5iZiI6MTU5MDA0MDM3MiwianRpIjoiWWJnUFRWNWtkUXcyNWlyZSIsInN1YiI6MTAwLCJwcnYiOiJjYjc4YjVlMWZmY2UwZjgzMWQwMjMxZGYyYzhiZDdjODA2NDc3NzYyIn0.9uSOszOVztsoMmnFThsPCxD06HsbHd8I0S-gF_79Xg4" }, "code": 0 } ```