AI审稿功能开发
This commit is contained in:
@@ -43,7 +43,7 @@ class Aireview extends Base
|
|||||||
}
|
}
|
||||||
|
|
||||||
//根据期刊ID查询期刊信息
|
//根据期刊ID查询期刊信息
|
||||||
$aJournal = Db::table('t_journal')->field('zname')->where('journal_id',$aArticle['journal_id'])->find();
|
$aJournal = Db::table('t_journal')->field('zname,scope')->where('journal_id',$aArticle['journal_id'])->find();
|
||||||
if(empty($aJournal)){
|
if(empty($aJournal)){
|
||||||
return json_encode(array('status' => 4,'msg' => 'This article is not associated with a journal' ));
|
return json_encode(array('status' => 4,'msg' => 'This article is not associated with a journal' ));
|
||||||
}
|
}
|
||||||
@@ -60,6 +60,7 @@ class Aireview extends Base
|
|||||||
$aSearch['{keywords}'] = empty($aArticle['keywords']) ? '' : $aArticle['keywords'];//关键词
|
$aSearch['{keywords}'] = empty($aArticle['keywords']) ? '' : $aArticle['keywords'];//关键词
|
||||||
$aSearch['{content}'] = empty($aArticleMain) ? '' : strip_tags(implode('', array_unique($aArticleMain)));//文章内容
|
$aSearch['{content}'] = empty($aArticleMain) ? '' : strip_tags(implode('', array_unique($aArticleMain)));//文章内容
|
||||||
$aSearch['{journal_name}'] = empty($aJournal['zname']) ? '' : $aJournal['zname'];//期刊名
|
$aSearch['{journal_name}'] = empty($aJournal['zname']) ? '' : $aJournal['zname'];//期刊名
|
||||||
|
$aSearch['{scope}'] = empty($aJournal['scope']) ? '' : $aJournal['scope'];//期刊范围
|
||||||
//获取问答内容
|
//获取问答内容
|
||||||
$oOpenAi = new OpenAi;
|
$oOpenAi = new OpenAi;
|
||||||
$aMessage = $oOpenAi->buildReviewArticlePrompt($aSearch);
|
$aMessage = $oOpenAi->buildReviewArticlePrompt($aSearch);
|
||||||
|
|||||||
Reference in New Issue
Block a user