{% extends "admin_layout.html" %} {% block active_nav %}messages{% endblock %} {% block title %}消息详情 · 管理后台{% endblock %} {% block content %}

💬 消息详情

← 返回消息列表

{% if thread.unread_admin %}未读{% endif %} {% if thread.status == 'solved' %}已解决 {% else %}待处理{% endif %} {{ thread.title or '(无标题)' }} | {% if thread.kind == 'user' %}{{ name }}(线上用户){% else %}绿色版机器 {{ thread.key.split('~', 1)[0].split('-', 1)[1][:12] }}…{% endif %} | {{ thread.messages | length }} 条 | 创建 {{ thread.created_at }} | 最近 {{ thread.updated_at }}
{% for m in thread.messages %}
{{ '👤 用户' if m.role == 'user' else '🛡 管理员' }} · {{ m.ts }}
{{ m.content }}
{% endfor %} {% if thread.status == 'solved' %}

✅ 已标为已解决;用户再次回复会自动重新打开(回到「待处理」)。

{% endif %}
{% endblock %}