返回首页
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_verify.php on line 6
SITE_URLstore_api.php?action=verify_download
接口说明

验证用户是否有权限下载指定应用。用于在下载前检查用户是否已购买或应用是否免费。

请求参数
参数类型必填说明
app_idint应用ID
license_keystring否*授权码(推荐使用)
domainstring否*当前域名(license_key 和 domain 至少传一个)
返回示例 - 有权限
{
    "code": 200,
    "msg": "success",
    "data": {
        "allowed": 1
    }
}
返回示例 - 无权限
{
    "code": 200,
    "msg": "success",
    "data": {
        "allowed": 0,
        "price": 80
    }
}
返回字段说明
字段说明
allowed是否有下载权限:1=有权限, 0=无权限
price应用价格(仅当 allowed=0 时返回)
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_verify.php on line 61
SITE_URLapi.php?action=verify
接口说明

验证 DCSHOP 系统授权是否有效。

请求参数
参数类型必填说明
license_keystring授权码
domainstring当前域名
返回示例
{
    "code": 0,
    "msg": "授权有效",
    "data": {
        "license_key": "XXXX-XXXX-XXXX-XXXX",
        "customer": "客户名称",
        "version": "1.1.65",
        "expire_time": "2026-12-31 23:59:59",
        "license_type": "svip",
        "signature": "签名字符串"
    }
}