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_verify.php on line 6
SITE_URLstore_api.php?action=verify_download
接口说明
验证用户是否有权限下载指定应用。用于在下载前检查用户是否已购买或应用是否免费。
请求参数
| 参数 | 类型 | 必填 | 说明 |
| app_id | int | 是 | 应用ID |
| license_key | string | 否* | 授权码(推荐使用) |
| domain | string | 否* | 当前域名(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/dcshop2.xzsc.cc/doc_sections/api_verify.php on line 61
SITE_URLapi.php?action=verify
请求参数
| 参数 | 类型 | 必填 | 说明 |
| license_key | string | 是 | 授权码 |
| domain | string | 是 | 当前域名 |
返回示例
{
"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": "签名字符串"
}
}