+ +
+
+
- -
- -
- - -
- -- - -
- -- - -
-- - -
-- - -
--
-
-
-
-
-
-
-
+
+
+
+
+
+
From 10e0f5e8c12ee62fba68c496feda618c69e2de41 Mon Sep 17 00:00:00 2001 From: nanhaoluo <3075912108@qq.com> Date: Tue, 20 Jan 2026 22:45:15 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=AE=8C=E5=85=A8=E9=87=8D?= =?UTF-8?q?=E6=9E=84=20AI=20=E9=AA=8C=E8=AF=81=E9=A1=B5=E9=9D=A2=EF=BC=88?= =?UTF-8?q?=E5=8F=82=E8=80=83=E5=8F=8B=E9=93=BE=E9=A1=B5=E9=9D=A2=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 采用友链页面的布局和样式结构 - 使用全局 CSS 变量 - 固定页面布局(隐藏侧边栏) - PJAX 兼容性处理 - 响应式设计 - 内容验证功能完整实现 --- ai-summary-query.php | 602 ++++++++++++++++++------------------------- 1 file changed, 250 insertions(+), 352 deletions(-) diff --git a/ai-summary-query.php b/ai-summary-query.php index 72a698c..a5fa3a9 100644 --- a/ai-summary-query.php +++ b/ai-summary-query.php @@ -3,13 +3,10 @@ * AI 内容验证与查询页面 * @package Argon */ - $wp_load_path = dirname(dirname(dirname(dirname(__FILE__)))) . '/wp-load.php'; if (!file_exists($wp_load_path)) $wp_load_path = $_SERVER['DOCUMENT_ROOT'] . '/wp-load.php'; require_once($wp_load_path); -get_header(); - $query_code = isset($_GET['code']) ? sanitize_text_field($_GET['code']) : ''; $result = null; $error = ''; @@ -42,7 +39,6 @@ if (!empty($query_code)) { 'code' => $query_code ]; - // 提供商名称映射 $provider_names = [ 'openai' => 'OpenAI', 'anthropic' => 'Anthropic', @@ -57,7 +53,6 @@ if (!empty($query_code)) { $result['provider_display'] = isset($provider_names[$result['provider']]) ? $provider_names[$result['provider']] : $result['provider']; - // 检查内容是否被修改 $current_hash = md5($post->post_content . $post->post_title); $result['is_modified'] = ($result['summary_hash'] !== $current_hash); } else { @@ -68,365 +63,268 @@ if (!empty($query_code)) { } } } + +get_header(); ?> - -