返回首页
POST 获取应用列表
https://dcshop.xzsc.cc/store_api.php?action=list
请求参数
参数类型必填说明
typestring应用类型:plugin(插件) / template(模板集合) / all(全部)
template_typestring当 type=template 时可细分:template / user_template / bottom_nav_template / blog_template / admin_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,
                "allow_buyout": 1,
                "user_price_monthly": 20,
                "has_monthly": 1,
                "trial_days": 7,
                "can_trial": 1,
                "user_price": 80,
                "user_level": 1,
                "version": "1.0.0",
                "sales": 100,
                "is_buy": "n",
                "buy_type": "",
                "expire_time": null,
                "is_expired": 0
            }
        ],
        "count": 50,
        "page": 1,
        "limit": 20
    }
}
返回字段说明
字段说明
user_price当前用户的实际价格(根据授权等级计算)
user_price_monthly当前用户月付价格,0 表示该等级不支持或未配置
user_level用户授权等级:0=未授权, 1=VIP, 2=SVIP, 3=至尊
is_buy是否已购买:y=已购买/免费, n=未购买
buy_type购买类型:permanent=买断,monthly=月付,trial=试用
expire_time月付/试用到期时间
can_trial是否可试用:1=可试用,0=不可试用
GET 获取分类列表
https://dcshop.xzsc.cc/store_api.php?action=categories
请求参数
参数类型必填说明
typestring应用类型:plugin / template / all
template_typestring模板细分类型,默认 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}
    ]
}