返回首页
POST 获取单应用详情

Warning: Use of undefined constant SITE_URL - assumed 'SITE_URL' (this will throw an Error in a future version of PHP) in /www/wwwroot/dcshop2.xzsc.cc/doc_sections/api_detail.php on line 6
SITE_URLstore_api.php?action=detail
接口说明

获取指定应用的详细信息,包括版本历史、完整描述等。

请求参数
参数类型必填说明
idint否*应用ID(id 和 slug 至少传一个)
slugstring否*应用英文标识
domainstring当前域名(用于获取用户价格)
license_keystring授权码
返回示例
{
    "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_level": 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"
            }
        ]
    }
}
返回字段说明
字段类型说明
contentstring应用详细介绍(HTML格式)
screenshotsarray应用截图URL数组
free_for_supremeint至尊会员是否免费:1=免费, 0=不免费
demo_urlstring演示地址
versionsarray版本历史(最近10条)
POST 获取用户信息

Warning: Use of undefined constant SITE_URL - assumed 'SITE_URL' (this will throw an Error in a future version of PHP) in /www/wwwroot/dcshop2.xzsc.cc/doc_sections/api_detail.php on line 87
SITE_URLstore_api.php?action=user_info
接口说明

获取当前授权用户的信息,包括余额、授权类型等。

请求参数
参数类型必填说明
license_keystring否*授权码(推荐)
domainstring否*当前域名
返回示例
{
    "code": 200,
    "msg": "success",
    "data": {
        "username": "user123",
        "email": "user@example.com",
        "balance": 500.00,
        "license_type": "svip",
        "license_type_name": "SVIP",
        "expire_time": "2026-12-31 23:59:59"
    }
}