参考文献作者堆叠
参考文献相关性检测 作者ai写作辅助检测工作
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user