From 8c5039c933becf02d9adb0fd760c36cdce6bfd82 Mon Sep 17 00:00:00 2001
From: nanhaoluo <3075912108@qq.com>
Date: Fri, 23 Jan 2026 16:53:33 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20AI=20=E6=9F=A5=E8=AF=A2=E9=A1=B5?=
=?UTF-8?q?=E9=9D=A2=E6=98=BE=E7=A4=BA=E5=AE=8C=E6=95=B4=E7=9A=84=E6=A3=80?=
=?UTF-8?q?=E6=B5=8B=E7=BB=93=E6=9E=9C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 添加用户名审查状态显示
- 添加置信度百分比显示
- 添加处理建议显示
- 添加综合分析内容显示
- 管理员记录弹窗同步显示完整信息
---
ai-summary-query.php | 75 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 75 insertions(+)
diff --git a/ai-summary-query.php b/ai-summary-query.php
index 1a1aefc..534570e 100644
--- a/ai-summary-query.php
+++ b/ai-summary-query.php
@@ -226,6 +226,10 @@ if (!empty($query_code)) {
'comment_url' => get_comment_link($comment),
'is_spam' => isset($detection_result['is_spam']) ? $detection_result['is_spam'] : false,
'reason' => isset($detection_result['reason']) ? $detection_result['reason'] : '',
+ 'username_invalid' => isset($detection_result['username_invalid']) ? $detection_result['username_invalid'] : false,
+ 'confidence' => isset($detection_result['confidence']) ? $detection_result['confidence'] : null,
+ 'suggestion' => isset($detection_result['suggestion']) ? $detection_result['suggestion'] : '',
+ 'analysis' => isset($detection_result['analysis']) ? $detection_result['analysis'] : '',
'action' => isset($detection_result['action']) ? $detection_result['action'] : '',
'detection_time' => $detection_time,
'code' => $query_code
@@ -554,10 +558,41 @@ html.darkmode .ai-verify-subtitle { color: #aaa; }
+
+
+
+
+
+
+
+
+
+
+
+
+
+ %
+
+
+
+
+
+
+ __('自动处理', 'argon'),
+ 'review' => __('人工审核', 'argon'),
+ 'approve' => __('直接通过', 'argon')
+ ];
+ echo isset($suggestion_labels[$result['suggestion']]) ? esc_html($suggestion_labels[$result['suggestion']]) : esc_html($result['suggestion']);
+ ?>
+
+
+
@@ -587,6 +622,13 @@ html.darkmode .ai-verify-subtitle { color: #aaa; }
+
+
+
+
+
+
+
@@ -690,6 +732,10 @@ if (current_user_can('manage_options')):
'post_url' => get_permalink($comment->comment_post_ID),
'is_spam' => isset($detection_result['is_spam']) ? $detection_result['is_spam'] : false,
'reason' => isset($detection_result['reason']) ? $detection_result['reason'] : '',
+ 'username_invalid' => isset($detection_result['username_invalid']) ? $detection_result['username_invalid'] : false,
+ 'confidence' => isset($detection_result['confidence']) ? $detection_result['confidence'] : null,
+ 'suggestion' => isset($detection_result['suggestion']) ? $detection_result['suggestion'] : '',
+ 'analysis' => isset($detection_result['analysis']) ? $detection_result['analysis'] : '',
'action' => isset($detection_result['action']) ? $detection_result['action'] : '',
'detection_time' => $detection->time
]
@@ -926,10 +972,32 @@ if (current_user_can('manage_options')):
+ ${record.data.username_invalid ? `
+
+
+
+
+
+
+
+
+ ` : ''}
${escapeHtml(record.data.reason)}
+ ${record.data.confidence ? `
+
+
+ ${Math.round(record.data.confidence * 100)}%
+
+ ` : ''}
+ ${record.data.suggestion ? `
+
+
+ ${escapeHtml(record.data.suggestion)}
+
+ ` : ''}
${record.data.action ? `
@@ -942,6 +1010,13 @@ if (current_user_can('manage_options')):
+ ${record.data.analysis ? `
+
+
+ ${escapeHtml(record.data.analysis)}
+
+ ` : ''}
+