{% extends 'base_console.html' %} {% block title %}管理员后台{% endblock %} {% block page_title %}概览{% endblock %} {% block console_content %}

系统管理概览

控制服务全局开放状态、配置客户到期时间与各平台 QPS 限制。
超级管理员
24 小时总调用{{ stats['calls'] or 0 }}
成功调用{{ stats['successes'] or 0 }}
活跃客户数{{ stats['users'] or 0 }}
API 服务状态{{ '正常服务' if settings.get('global_api_enabled')=='1' else '已暂停' }}

API 调用趋势

{% if current_days == 0 %}全周期每日接口请求总数与成功解析数{% else %}近 {{ current_days }} 天每日接口请求总数与成功解析数{% endif %}
总调用量 成功调用量
{% for tick in chart_data['y_ticks'] %} {{ tick['val'] }} {% endfor %} {% for item in chart_data['trend'] %} {% if item['show_label'] %} {{ item['short_date'] }} {% endif %} {% endfor %}

平台使用分布

{% if current_days == 0 %}全周期各平台调取占比与分布{% else %}近 {{ current_days }} 天各平台解析调取占比与分布{% endif %}
{% if pie_data['total_calls'] == 0 %}
当前时间范围内暂无调用记录
{% else %}
{% for item in pie_data['items'] %} {{ item['platform'] }}: {{ item['calls'] }} 次 ({{ item['percentage'] }}%) {% endfor %}
{{ pie_data['total_calls'] }}
总解析量
{% for item in pie_data['items'] %}
{{ item['platform'] }} {{ item['percentage'] }}%
{% endfor %}
{% endif %}

用户解析活跃榜 (Top 10)

{% if current_days == 0 %}全周期调用量最高的客户账号{% else %}近 {{ current_days }} 天调用量最高的客户账号{% endif %}
{% if not top_users %}
暂无活跃用户榜单数据
{% else %}
{% for item in top_users %}
{{ item['username'] }} {{ item['calls'] }} 次
{% endfor %}
{% endif %}
{% endblock %}