返回首页
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/dcshop.xzsc.cc/doc_sections/api_list.php on line 6
SITE_URLstore_api.php?action=list
请求参数
参数类型必填说明
typestring应用类型:plugin(插件) / template(模板) / all(全部)
category_idint分类ID
keywordstring搜索关键词
pageint页码,默认1
limitint每页数量,默认20,最大50
domainstring当前域名(用于获取用户等级和价格)
license_keystring授权码(优先于domain)
返回示例
{
    "code": 200,
    "msg": "success",
    "data": {
        "list": [
            {
                "id": 1,
                "name": "示例插件",
                "slug": "example_plugin",
                "type": "plugin",
                "category_id": 1,
                "category_name": "功能增强",
                "description": "这是一个示例插件",
                "author": "DCSHOP",
                "cover": "https://xxx/cover.jpg",
                "price": 100,
                "price_vip": 80,
                "price_svip": 50,
                "price_supreme": 0,
                "user_price": 80,
                "user_level": 1,
                "version": "1.0.0",
                "sales": 100,
                "is_buy": "n"
            }
        ],
        "count": 50,
        "page": 1,
        "limit": 20
    }
}
返回字段说明
字段说明
user_price当前用户的实际价格(根据授权等级计算)
user_level用户授权等级:0=未授权, 1=VIP, 2=SVIP, 3=至尊
is_buy是否已购买:y=已购买/免费, n=未购买
GET 获取分类列表

Warning: Use of undefined constant SITE_URL - assumed 'SITE_URL' (this will throw an Error in a future version of PHP) in /www/wwwroot/dcshop.xzsc.cc/doc_sections/api_list.php on line 73
SITE_URLstore_api.php?action=categories
请求参数
参数类型必填说明
typestring应用类型:plugin / template / all
返回示例
{
    "code": 200,
    "msg": "success",
    "data": [
        {"id": 1, "name": "功能增强", "slug": "feature", "type": "plugin", "sort": 100},
        {"id": 2, "name": "支付接口", "slug": "payment", "type": "plugin", "sort": 90},
        {"id": 3, "name": "界面美化", "slug": "theme", "type": "template", "sort": 80}
    ]
}