APIRequestWeb 用户控制台

管理您的异步任务

欢迎, {{ user.username }}

用户仪表盘

{{ dashboardError }}
加载中...
当前可用点数
{{ (((dashboardStats || {}).points || {}).available_points) || 0 }}
区间消耗点数
{{ (((dashboardStats || {}).points || {}).consumed_total) || 0 }}
区间获取点数
{{ (((dashboardStats || {}).points || {}).earned_total) || 0 }}
净变化
{{ (((dashboardStats || {}).points || {}).net_change) || 0 }}
任务总数
{{ (((dashboardStats || {}).task_stats || {}).total) || 0 }}
成功率
{{ Number((((dashboardStats || {}).task_stats || {}).success_rate) || 0).toFixed(1) }}%
失败率
{{ Number((((dashboardStats || {}).task_stats || {}).failure_rate) || 0).toFixed(1) }}%
成功任务
{{ (((dashboardStats || {}).task_stats || {}).success) || 0 }}
失败任务
{{ (((dashboardStats || {}).task_stats || {}).failed) || 0 }}
充值汇总
净充值点数
{{ (((dashboardStats || {}).recharge_summary || {}).recharge_points_total) || 0 }}
充值记录数
{{ (((dashboardStats || {}).recharge_summary || {}).recharge_records_total) || 0 }}
充值点数
{{ (((dashboardStats || {}).recharge_summary || {}).recharge_in_points) || 0 }}
反向充值点数
{{ (((dashboardStats || {}).recharge_summary || {}).reverse_recharge_points) || 0 }}
我的功能消耗排行
功能消耗次数成功率
{{ it.feature_name || ('ID:' + it.feature_id) }} {{ it.consume_count || 0 }} {{ Number(it.success_rate || 0).toFixed(1) }}%
暂无数据
我的API消耗排行
API调用次数消耗点数成功率
{{ it.api_name || '-' }} {{ it.consume_count || 0 }} {{ it.consumed_points || 0 }} {{ Number(it.success_rate || 0).toFixed(1) }}%
暂无数据
我的充值记录
时间点数类型备注
{{ formatDate(it.created_at) }} {{ it.points || 0 }} {{ it.type || '-' }} {{ it.note || '-' }}
暂无数据

点数充值

加载中...
{{ rechargeError }}
{{ (rechargeInfo && rechargeInfo.content) ? rechargeInfo.content : '' }}
暂无充值说明内容,请联系管理员在后台【系统设置】中配置。

API 接口

以下接口需要登录或提供 X-API-Key(也可用 ?api_key=)。

可用 API({{ (features || []).length }})
加载中...
暂无可用 API
自定义接口(/api/*,{{ (customAPIs || []).length }})
加载中...
暂无可见自定义接口
请选择左侧 API 查看详情。
{{ selectedApiFeature.name }}
{{ selectedApiFeature.description }}
点数消耗
{{ getFeatureBillingHint(selectedApiFeature) }}
Endpoint
POST /api/features/{{ selectedApiFeature.ID }}/tasks
参数(params)
该 API 未配置表单字段(form_schema)。
key label type required example
{{ it.key }} {{ it.label || '-' }} {{ it.type || '-' }} {{ it.required ? '是' : '否' }} {{ (it.example === undefined || it.example === null || String(it.example) === '') ? '-' : String(it.example) }}
示例调用
Header:X-API-Key(建议)
{{ buildApiCurlExample(selectedApiFeature) }}
{{ selectedCustomAPI.name || selectedCustomAPI.id || selectedCustomAPI.path }}
{{ (selectedCustomAPI.method || 'POST').toUpperCase() }} {{ selectedCustomAPI.path }}
点数消耗
{{ selectedCustomAPI.points_cost || 0 }} / 次
Endpoint
{{ (selectedCustomAPI.method || 'POST').toUpperCase() }} {{ selectedCustomAPI.path }}
参数(params)
该接口未配置可解析的表单字段(form_schema)。
key label type required example
{{ it.key }} {{ it.label || '-' }} {{ it.type || '-' }} {{ it.required ? '是' : '否' }} {{ (it.example === undefined || it.example === null || String(it.example) === '') ? '-' : String(it.example) }}
示例调用
Header:X-API-Key(建议)
{{ buildCustomApiCurlExample(selectedCustomAPI) }}

API 请求记录

已选 {{ selectedApiLogIds.length }} 条
加载中...
时间 规则 请求 消耗点数 状态码 耗时 来源IP 操作
{{ formatDate(it.created_at) }} {{ it.rule_name || '-' }} {{ (it.method || '').toUpperCase() }} {{ it.path || '-' }} {{ it.consume_points || 0 }} {{ it.status_code || 0 }} {{ formatDurationMs(it.duration) }} {{ it.remote_addr || '-' }}
暂无记录
共 {{ apiLogTotal }} 条,当前第 {{ apiLogPage }} / {{ apiLogTotalPages }} 页

API请求详情

时间:{{ formatDate(apiLogDetail.created_at) }}
规则:{{ apiLogDetail.rule_name || '-' }}
消耗点数:{{ apiLogDetail.consume_points || 0 }}
请求:{{ (apiLogDetail.method || '').toUpperCase() }} {{ apiLogDetail.path || '-' }}
状态码:{{ apiLogDetail.status_code || 0 }}
耗时:{{ formatDurationMs(apiLogDetail.duration) }}
Query 参数
{{ apiLogDetail.raw_query || '-' }}
请求体
{{ apiLogDetail.request_body || '-' }}
响应体
{{ apiLogDetail.response_body || '-' }}
错误信息
{{ apiLogDetail.error || '-' }}

异步任务列表

已选: {{ (selectedTaskIds || []).length }}
序号{{ taskSortIndicator('seq') }} 任务 ID 名称{{ taskSortIndicator('name') }} 分类{{ taskSortIndicator('category') }} 功能名称 状态{{ taskSortIndicator('status') }} 重试次数{{ taskSortIndicator('retry_count') }} 运行时间 创建时间{{ taskSortIndicator('created_at') }} 更新时间{{ taskSortIndicator('updated_at') }} 操作
{{ getTaskSeq(task, idx) }} {{ task.id }} {{ task.name || '-' }} {{ task.category || '-' }} {{ task.feature_name || getFeatureNameByRuleId(task.rule_id) }} {{ statusText(task.status) }} {{ task.retry_count }} {{ formatTaskDuration(task) }} {{ formatDate(task.created_at) }} {{ formatDate(task.updated_at) }}
暂无任务
共 {{ taskTotal }} 条
每页
第 {{ taskPage }} 页 / 共 {{ taskTotalPages }} 页
个人中心

编辑任务

保存后对下次运行/重试生效。
暂无配置,请先到个人中心新增 Webhook 配置

创建任务

后台限制最大重试次数:{{ Number(selectedFeature.rule_retry_count) }}
后台限制:无限制(允许设置 -1)
优先级:任务设置 > 功能设置 > 规则设置 > 全局默认;且不能小于最小值(默认 5 秒)
功能说明
{{ (selectedFeature.description || '').toString() }}
点数消耗提示
{{ getFeatureBillingHint(selectedFeature) }}
下载任务批量提交工具
可多选。任务成功后将推送到所选渠道。
暂无配置,请先到个人中心新增 Webhook 配置

任务详情

{{ statusText(currentTask.status) }}
{{ currentTask.id }}
运行时间
{{ formatTaskDuration(currentTask) }}
重试次数
{{ currentTask.retry_count }}
更新时间
{{ formatDate(currentTask.updated_at) }}
所属功能
{{ currentTask.feature_name || getFeatureNameByRuleID(currentTask.rule_id) }}
结果字段
该功能未配置结果字段
{{ f.label || f.path }}
{{ extractResultValue(currentTask.response, f.path) }}
{{ prettyJSON(currentTask.payload) }}
{{ prettyJSON(currentTask.headers) }}
{{ prettyJSON(currentTask.response) }}
错误信息
{{ currentTask.error }}
无错误信息
每页
加载中...
暂无记录
#{{ it.attempt_no }} | {{ formatDate(it.created_at) }}
status={{ it.status_code }}
{{ it.error }}
{{ prettyJSON(it.response) }}
第 {{ attemptsPage }} 页 / 共 {{ Math.max(1, Math.ceil(attemptsTotal / attemptsPageSize)) }} 页({{ attemptsTotal }} 条)