参考文献作者堆叠

参考文献相关性检测
作者ai写作辅助检测工作
This commit is contained in:
wyn
2026-07-15 10:49:05 +08:00
parent da71dfc04e
commit 8785610e6d
27 changed files with 10008 additions and 204 deletions

View File

@@ -55,10 +55,14 @@ class ReferenceCheckMqConsume extends Command
$msg->ack();
return;
}
$pArticleId = intval(isset($payload['p_article_id']) ? $payload['p_article_id'] : 0);
$batchId = intval(isset($payload['batch_id']) ? $payload['batch_id'] : 0);
$output->writeln('[' . date('H:i:s') . '] consume p_article_id=' . $pArticleId . ' batch_id=' . $batchId);
try {
$worker->handleMessage($payload);
$output->writeln('[' . date('H:i:s') . '] done p_article_id=' . $pArticleId . ' batch_id=' . $batchId);
$msg->ack();
} catch (\Exception $e) {
} catch (\Throwable $e) {
\think\Log::error('reference_check:mq-consume ' . $e->getMessage());
$output->writeln('<error>' . $e->getMessage() . '</error>');
$msg->nack(false, false);