From 09946318f4e0f717a2da41f987c55f16e39a3233 Mon Sep 17 00:00:00 2001 From: chengxl Date: Tue, 3 Jun 2025 10:45:39 +0800 Subject: [PATCH] =?UTF-8?q?online=E7=8A=B6=E6=80=81=E7=9A=84=E6=96=87?= =?UTF-8?q?=E7=AB=A0=E8=87=AA=E5=8A=A8=E7=94=9F=E6=88=90AI=E5=86=85?= =?UTF-8?q?=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/controller/Production.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/application/api/controller/Production.php b/application/api/controller/Production.php index bf03e43..9f30e64 100644 --- a/application/api/controller/Production.php +++ b/application/api/controller/Production.php @@ -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']);