DCSHOP 单应用详情接口文档,包含应用标识、类型、版本、描述和价格字段。
获取指定应用的详细信息,包括版本历史、完整描述等。
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| id | int | 否* | 应用ID(id 和 slug 至少传一个) |
| slug | string | 否* | 应用英文标识 |
| type / template_type | string | 否 | 当不同模板类型存在相同 slug 时建议传入,避免查询串应用。 |
| domain | string | 否 | 当前域名(用于获取用户价格) |
| license_key | string | 否 | 授权码 |
{
"code": 200,
"msg": "success",
"data": {
"id": 1,
"name": "示例插件",
"slug": "example_plugin",
"type": "plugin",
"category_id": 1,
"description": "这是一个示例插件的简短描述",
"content": "<p>这是应用的详细介绍HTML内容</p>",
"author": "DCSHOP",
"author_url": "https://dcshop.dev",
"cover": "https://xxx/cover.jpg",
"screenshots": ["https://xxx/1.jpg", "https://xxx/2.jpg"],
"price": 100,
"price_vip": 80,
"price_svip": 50,
"price_supreme": 0,
"free_for_supreme": 1,
"user_price": 80,
"user_price_monthly": 20,
"user_level": 1,
"has_monthly": 1,
"allow_buyout": 1,
"version": "1.2.0",
"demo_url": "https://demo.example.com",
"sales": 150,
"created_at": "2025-01-01 00:00:00",
"updated_at": "2026-01-01 00:00:00",
"versions": [
{
"version": "1.2.0",
"changelog": "1. 新增功能A\n2. 修复BUG B",
"created_at": "2026-01-01 00:00:00"
},
{
"version": "1.1.0",
"changelog": "1. 优化性能\n2. 新增功能C",
"created_at": "2025-06-01 00:00:00"
}
]
}
}
| 字段 | 类型 | 说明 |
|---|---|---|
| content | string | 应用详细介绍(HTML格式) |
| screenshots | array | 应用截图URL数组 |
| free_for_supreme | int | 企业会员是否免费:1=免费, 0=不免费 |
| has_monthly | int | 是否支持月付:1=支持, 0=不支持 |
| allow_buyout | int | 是否允许买断:1=允许, 0=只允许月付 |
| demo_url | string | 演示地址 |
| versions | array | 版本历史(最近10条) |