{% extends "admin_layout.html" %} {% block active_nav %}dashboard{% endblock %} {% block title %}仪表盘 · 管理后台{% endblock %} {% block content %}

👋 仪表盘

{{ stats.total }}
卡密总数
{{ stats.unused }}
未使用
{{ stats.used }}
已使用
{{ stats.disabled }}
已禁用
{{ active_users }}
当前有效用户
{{ licenses | length }}
开通过卡密的用户

🔑 快速生成卡密

生成后到「卡密管理」页查看 / 复制;把卡密发给用户,用户在「设置 → 卡密激活」输入即可开通有效期。

更多选项(数量 / 天数 / 批次)…

👥 用户有效期总览({{ licenses | length }})

{% if licenses %} {% for l in licenses %} {% endfor %}
用户状态有效期至剩余激活卡密激活时间
{{ l.uid }} {% if l.status == 'active' %}有效 {% else %}已过期{% endif %} {{ (l.expires_at or '')[:10] or '-' }} {% if l.status == 'active' %}{{ l.remaining_days }} 天{% else %}-{% endif %} {{ l.code }} {{ (l.activated_at or '').replace('T', ' ') or '-' }}
{% else %}

还没有用户激活卡密。生成卡密后发给用户即可。

{% endif %}

🔒 修改管理员密码

{% endblock %}