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'); } } } ?> + +
-
-
-
-

- - -

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

- - -

-
- -
-
- - -
-

- - -

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

- - -

-
- -
-
- - -
-

- - -

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

- - -

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

+

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

+ 🔖 + +

+
+
+ + +
+

+ 📄 + +

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

+ 📝 + +

+
+ +
+
+ + +
+

+ + +

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

+ + +

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