From d40af82a37560c166420840eb71969fe216f9b78 Mon Sep 17 00:00:00 2001 From: nanhaoluo <3075912108@qq.com> Date: Tue, 20 Jan 2026 22:35:08 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E9=87=8D=E6=9E=84=20AI=20=E9=AA=8C?= =?UTF-8?q?=E8=AF=81=E9=A1=B5=E9=9D=A2=E4=B8=BA=E4=B8=93=E4=B8=9A=E5=8C=96?= =?UTF-8?q?=E8=AE=BE=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 页面定位调整为 AI 内容验证与查询 - 移除所有 emoji 图标,使用纯文本 - 所有样式使用 CSS 全局变量 - 增加内容变更检测功能 - 显示文章最后修改时间 - 添加验证状态徽章(一致/已变更) - 优化描述文案,更加专业化 - 响应式设计优化 --- ai-summary-query.php | 494 +++++++++++++++++++++++++++++++------------ 1 file changed, 360 insertions(+), 134 deletions(-) diff --git a/ai-summary-query.php b/ai-summary-query.php index 8b9035b..72a698c 100644 --- a/ai-summary-query.php +++ b/ai-summary-query.php @@ -1,6 +1,6 @@ get_the_title($post_id), 'post_url' => get_permalink($post_id), 'post_date' => get_the_date('Y-m-d H:i:s', $post_id), + 'post_modified' => get_the_modified_date('Y-m-d H:i:s', $post_id), 'post_author' => get_the_author_meta('display_name', $post->post_author), 'summary' => get_post_meta($post_id, '_argon_ai_summary', true), + 'summary_hash' => get_post_meta($post_id, '_argon_ai_summary_hash', true), 'model' => get_post_meta($post_id, '_argon_ai_summary_model', true), 'provider' => get_post_meta($post_id, '_argon_ai_summary_provider', true), 'generated_time' => get_post_meta($post_id, '_argon_ai_summary_time', true), @@ -54,152 +56,376 @@ 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 { $error = __('文章不存在或未发布', 'argon'); } } else { - $error = __('未找到对应的摘要记录', 'argon'); + $error = __('未找到对应的 AI 生成内容记录', 'argon'); } } } ?> + +
-
-
-
-

- - -

- - -
-
- - -
-
- - - -
- -
- - -
- -
-

- - -

-
- -
-
- - -
-

- - -

-
-
- : - - - -
-
- : - -
-
- : - -
-
- : - -
-
-
- - -
-

- - -

-
- -
-
- - -
-

- - -

-
-
- : - -
-
- : - -
-
- : - -
-
-
- - - -
- - -
-

- - -

-
    -
  • -
  • -
  • -
  • -
-
- +
+
+
+

+

+ + +
+
+ + +
+
+ + + +
+ + +
+ + +
+ + +
+ +
+
+ +
+
+ +
+ +
+
+ +
+
+ + + +
+

+ 🔖 + +

+
+
+ + +
+

+ 📄 + +

+
+
+ + + + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + + + + + + + +
+
+
+ + +
+

+ 📝 + +

+
+ +
+
+ + +
+

+ + +

+
+
+ + +
+
+ + +
+
+ + +
+
+
+ + + +
+ + +
+

+ + +

+
    +
  • +
  • +
  • +
  • +
  • +
+
+
-
+