-
Notifications
You must be signed in to change notification settings - Fork 12
API说明 OTHER
Hstb edited this page Aug 28, 2017
·
2 revisions
{
"fun":"addLog",
"level":0,
"type":"类型",
"text":"内容"
}
参数名 | 类型 | 默认值 | 说明 |
---|---|---|---|
level |
int | 0 |
优先级,0 /调试,10 /信息,11 /信息_成功,12 /信息_接收,13 /信息_发送,20 /警告,30 /错误,40 /致命错误 |
type |
string | - | 类型 |
text |
string | - | 内容 |
{
"status":0,
"result":10
}
参数名 | 类型 | 说明 |
---|---|---|
result |
int | 日志ID |
{
"fun":"downFile",
"url":"http://www.baidu.com/img/baidu_jgylogo3.gif",
"name":"123456.jpg",
"type":1,
"md5":""
}
参数名 | 类型 | 默认值 | 说明 |
---|---|---|---|
url |
string | - | 文件的url地址 |
name |
string | null |
文件名,值为空时使用md5值 |
type |
int | 1 |
文件类型,1 /图片,2 /语音 |
md5 |
string | null |
文件校验码,32位小写形式 |
{
"status":0,
"result":"CtPe\123456.jpg"
}
参数名 | 类型 | 说明 |
---|---|---|
result |
string | 文件的相对路径 |
- 需先创建快速登录文件,当酷Q崩溃(指无响应)时无法使用
- 此API执行成功时,无任何返回数据
{
"fun":"rebootService"
}