检测更新
POST
/myauth/soft/checkUpdate
请求参数
Body 参数application/json
data
object
必需
device_info
string
必需
device_code
string
必需
timestamp
string
必需
skey
string
必需
vkey
string
必需
sign
string
必需
示例
{
"data": {
"device_info": "windows 10",
"device_code": "5A79565CC85400F0-83b59db87562d3ca4b732957016075cf",
"timestamp": "1642487211"
},
"skey": "7c580b6e-56fc-41ac-953c-8b6896e26eb1",
"vkey": "asd123",
"sign": "be7efbf754e529bad5d8662b90f6e6db"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/myauth/soft/checkUpdate' \
--header 'Content-Type: application/json' \
--data-raw '{
"data": {
"device_info": "windows 10",
"device_code": "5A79565CC85400F0-83b59db87562d3ca4b732957016075cf",
"timestamp": "1642487211"
},
"skey": "7c580b6e-56fc-41ac-953c-8b6896e26eb1",
"vkey": "asd123",
"sign": "be7efbf754e529bad5d8662b90f6e6db"
}'
返回响应
🟢200成功
application/json
Body
code
integer
示例:200
success
boolean
成功响应
msg
string
返回文字描述
sign
string
必需
result
object
结果集
timeStamp
string
必需
ver
string
示例:1.0.1
haveNew
string
必需
list
array [object {5}]
最新版本列表
timestamp
integer
必需
示例
{
"code": 200,
"success": true,
"msg": "检测到有新版本",
"sign": "18a0408d5adcaedd8f92570bc442f67a",
"result": {
"timeStamp": "1642487464",
"ver": "1.0.1",
"haveNew": "1",
"list": [
{
"ver": "1.0.2",
"updType": 1,
"updLog": "asda阿萨德",
"updTime": 1642145917,
"status": 1
},
{
"ver": "1.0.1",
"updType": 1,
"updLog": "阿萨德",
"updTime": 1642145917,
"status": 1
}
]
},
"timestamp": 1642487464396
}
🔴500错误
修改于 2022-05-11 05:18:15