POST api/APPInfo/CheckVersion
检查是否有新版本
Request Information
Body Parameters
NewVersionModel| Name | Description | Type | Additional information |
|---|---|---|---|
| VersionNo |
当前APP版本 |
string |
None. |
| AppSystem |
手机系统 1:android 2:iOS |
integer |
None. |
| Token |
登录后获取到的 Token |
string |
None. |
| Language |
语言选项 |
string |
None. |
| AppId |
APP应用标识 |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"VersionNo": "sample string 1",
"AppSystem": 2,
"Token": "sample string 3",
"Language": "sample string 4",
"AppId": "sample string 5"
}
application/xml, text/xml
Sample:
<NewVersionModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel"> <AppId>sample string 5</AppId> <Language>sample string 4</Language> <Token>sample string 3</Token> <AppSystem>2</AppSystem> <VersionNo>sample string 1</VersionNo> </NewVersionModel>
Response Information
Resource Description
返回APP是否有新版本
NewVersionResult| Name | Description | Type | Additional information |
|---|---|---|---|
| HasNewVersion |
是否有新版APP可更新 true 有新版APP更新 |
boolean |
None. |
| DownloadUrl |
下载链接 |
string |
None. |
| State |
状态码 |
integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"HasNewVersion": true,
"DownloadUrl": "sample string 2",
"State": 3
}
application/xml, text/xml
Sample:
<NewVersionResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel"> <State>3</State> <DownloadUrl>sample string 2</DownloadUrl> <HasNewVersion>true</HasNewVersion> </NewVersionResult>