升级
This commit is contained in:
@@ -3856,18 +3856,19 @@ class Article extends Base
|
|||||||
$this->article_obj->where('article_id', $data['article_id'])->update($update_l);
|
$this->article_obj->where('article_id', $data['article_id'])->update($update_l);
|
||||||
$this->ai_scor($data['article_id']);
|
$this->ai_scor($data['article_id']);
|
||||||
|
|
||||||
//判断是否有文章领域 进行更新操作 chengxiaoling 20250722 start
|
|
||||||
$iArticleId = empty($data['article_id']) ? 0 : $data['article_id'];//文章ID
|
|
||||||
if(!empty($sMajorData) && !empty($iArticleId)){
|
|
||||||
$this->updateArticleField(['article_id' => $iArticleId,'article_field' => $sMajorData]);
|
|
||||||
}
|
|
||||||
//判断是否有文章领域 进行更新操作 chengxiaoling 20250722 end
|
|
||||||
//AI初审队列 chengxiaoling 20250815 start
|
//AI初审队列 chengxiaoling 20250815 start
|
||||||
|
$iArticleId = empty($data['article_id']) ? 0 : $data['article_id'];//文章ID
|
||||||
if(!empty($iArticleId)){
|
if(!empty($iArticleId)){
|
||||||
$aQueueParam = ['article_id' => $iArticleId];
|
$aQueueParam = ['article_id' => $iArticleId];
|
||||||
$sQueueId = \think\Queue::push('app\api\job\ArticleReview@fire', $aQueueParam, 'ArticleReview');
|
$sQueueId = \think\Queue::push('app\api\job\ArticleReview@fire', $aQueueParam, 'ArticleReview');
|
||||||
}
|
}
|
||||||
//AI初审队列 chengxiaoling 20250815 end
|
//AI初审队列 chengxiaoling 20250815 end
|
||||||
|
//判断是否有文章领域 进行更新操作 chengxiaoling 20250722 start
|
||||||
|
if(!empty($sMajorData) && !empty($iArticleId)){
|
||||||
|
$this->updateArticleField(['article_id' => $iArticleId,'article_field' => $sMajorData]);
|
||||||
|
}
|
||||||
|
//判断是否有文章领域 进行更新操作 chengxiaoling 20250722 end
|
||||||
|
|
||||||
return json(['code' => 0]);
|
return json(['code' => 0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user