refactor: 移除智能预审查,改为先保存后检测

- 移除所有智能预审查相关的设置和代码
- 评论先保存到数据库并标记为待审核状态
- AI 检测在评论保存后异步进行
- 检测完成后根据结果更新评论状态
- 避免误杀正常评论,提升用户体验
- 所有需要检测的评论都会显示为审核中
This commit is contained in:
2026-01-23 18:32:54 +08:00
parent 244b1725af
commit a38f168909
2 changed files with 48 additions and 184 deletions

View File

@@ -3908,7 +3908,7 @@ window.pjaxLoaded = function(){
</p>
</div>
<div style="margin-bottom: 15px;">
<div>
<label style="display: block; margin-bottom: 10px; font-weight: 600;">
<?php _e('智能抽查概率', 'argon');?>
</label>
@@ -3920,18 +3920,6 @@ window.pjaxLoaded = function(){
<?php _e('• 关键字必查模式下此设置无效', 'argon');?>
</p>
</div>
<div>
<?php $argon_comment_spam_detection_pre_check = get_option('argon_comment_spam_detection_pre_check', 'true'); ?>
<label style="display: block; margin-bottom: 8px;">
<input type="checkbox" name="argon_comment_spam_detection_pre_check" value="true" <?php if ($argon_comment_spam_detection_pre_check=='true'){echo 'checked';}?>/>
<strong><?php _e('启用智能预审查(推荐)', 'argon');?></strong>
</label>
<p class="description" style="margin-left: 24px;">
<?php _e('在评论保存前进行 AI 审查,高置信度垃圾评论直接拒绝,用户名违规自动修改。', 'argon');?><br/>
<?php _e('关闭后,评论会先保存,然后异步检测(可能已发送邮件通知)。', 'argon');?>
</p>
</div>
</td>
</tr>
@@ -4154,26 +4142,6 @@ window.pjaxLoaded = function(){
</td>
</tr>
<tr>
<th><label><?php _e('智能预审查', 'argon');?></label></th>
<td>
<?php $argon_comment_spam_detection_pre_check = get_option('argon_comment_spam_detection_pre_check', 'true'); ?>
<label style="display: block; margin-bottom: 8px;">
<input type="checkbox" name="argon_comment_spam_detection_pre_check" value="true" <?php if ($argon_comment_spam_detection_pre_check=='true'){echo 'checked';}?>/>
<?php _e('在评论保存前进行 AI 审查', 'argon');?>
</label>
<p class="description">
<strong><?php _e('推荐开启', 'argon');?></strong><br/>
<?php _e('开启后,评论会在保存到数据库前先进行 AI 审查:', 'argon');?><br/>
<?php _e('• 高置信度垃圾评论:直接拒绝,不保存到数据库', 'argon');?><br/>
<?php _e('• 用户名违规且无邮箱:直接拒绝', 'argon');?><br/>
<?php _e('• 用户名违规但有邮箱:自动修改用户名后保存', 'argon');?><br/>
<?php _e('• 低置信度垃圾评论:标记为待审核', 'argon');?><br/>
<?php _e('关闭后,评论会先保存,然后异步检测(可能已发送邮件通知)', 'argon');?>
</p>
</td>
</tr>
<tr>
<th><label><?php _e('手动批量检测', 'argon');?></label></th>
<td>
@@ -6844,7 +6812,6 @@ function argon_update_themeoptions(){
argon_update_option_checkbox('argon_comment_spam_detection_exclude_logged_in');
argon_update_option('argon_comment_spam_detection_keywords');
argon_update_option_checkbox('argon_comment_spam_detection_ai_learn');
argon_update_option_checkbox('argon_comment_spam_detection_pre_check');
}