online状态的文章自动生成AI内容

This commit is contained in:
chengxl
2025-06-03 10:45:39 +08:00
parent 09f715eca9
commit 09946318f4

View File

@@ -787,6 +787,15 @@ class Production extends Base
$iua['journal_title'] = $journal_info['title'];
$this->user_author_obj->insert($iua);
}
//推送到生成AI内容队列 chengxiaoling start 20250530
if(!empty($p_info['type']) && in_array($p_info['type'], ['Article','Review','Mini Review'])){
$iArticleId = empty($r_update['w_article_id']) ? 0 : $r_update['w_article_id'];
if(!empty($iArticleId)){
Queue::push('app\api\job\ArticleAiCreateContent@fire', ['article_id' => $iArticleId], 'ArticleAiCreateContent');
}
}
//推送到生成AI内容队列 chengxiaoling end 20250530
return jsonSuccess([]);
} else {
return jsonError('system error:' . $res['msg']);