简要描述:

  • 获取版本列表接口

接口版本:

版本号 制定人 制定日期 修订日期
1.0.0 kevin 2021-11-27

请求URL:

请求方式:

  • GET

请求头:

参数名 是否必须 类型 说明
token string 授权凭证

请求参数:

参数名 是否必须 类型 说明
page int 页码
pagesize int 条数
type string 平台 【Android=安卓端, iOS=苹果端,desktop=桌面端】,例如:Android,默认Android
system_type string 系统类型 【win32=Window端, linux=Linux端,mac=Mac端】,例如:win32,默认为空
digit int 位数 【x32=32位, x64=64位】,例如:x64,默认为空

返回示例:

正确时返回:

{
    "status": 200,
    "msg": "获取成功",
    "data": [
        {
            "type": "安卓",
            "name": "版本1.0.2",
            "version": "1.0.2",
            "description": "版本1.0.2",
            "download_url": "http://novel.com/uploads/apk/2020-04-13/5e94201e9a077.apk",
            "create_at": "2020-04-13 16:17:34""download_url_dir": "http://novel.com/uploads/apk/2020-04-13/"
        },
        {
            "type": "安卓",
            "name": "版本1.0.1",
            "version": "1.0.1",
            "description": "版本1.0.1",
            "download_url": "http://novel.com/uploads/apk/2020-04-13/5e941fcf3aeef.apk",
            "create_at": "2020-04-13 16:09:07""download_url_dir": "http://novel.com/uploads/apk/2020-04-13/"
        }
    ]
}

错误时返回:

{
    "status": 0,
    "msg": "token过期"
}

返回参数说明:

参数名 类型 说明
type string 类型 安卓/苹果
name string 名称
version string 版本号
description string 描述
download_url string 下载地址
create_at string 时间
download_url_dir string 文件目录

备注:

文档更新时间: 2022-01-20 14:48   作者:admin