feat: 完善用户名-评论联合检测功能

- 改为立即同步执行 AI 检测,不再延迟
- 管理员可看到原用户名:用户-XXXXXXXX (原用户名: xxx)
- 添加前台删除评论功能(仅管理员可见)
- 删除按钮使用红色 outline-danger 样式
- 删除前弹出确认对话框
- 删除后淡出动画并移除评论元素
- 完整的成功/失败提示
This commit is contained in:
2026-01-22 18:41:44 +08:00
parent 87f7374876
commit adf3852a74
4 changed files with 297 additions and 6 deletions

View File

@@ -698,10 +698,7 @@ if (current_user_can('manage_options')):
<article class="post card shadow-sm bg-white border-0 ai-verify-card" style="margin-top: 16px;">
<h3 class="ai-verify-section-title">
<i class="fa fa-database"></i><?php _e('AI 请求历史记录', 'argon'); ?>
<span style="font-size: 13px; font-weight: 400; color: var(--color-text-muted); margin-left: 8px;">
(<?php _e('仅管理员可见', 'argon'); ?>)
</span>
<i class="fa fa-database"></i><?php _e('请求记录', 'argon'); ?>
</h3>
<div class="ai-alert ai-alert-info" style="margin-bottom: 20px;">