公共方法
This commit is contained in:
@@ -52,7 +52,7 @@ class Aireview
|
||||
|
||||
//查询文章审核内容-判断新增或修改
|
||||
$aWhere = ['article_id' => $iArticleId,'journal_id' => $iJournalId];
|
||||
$aAiReview = Db::table('t_article_ai_review')->field('id')->where($aWhere)->find();
|
||||
$aAiReview = Db::name('article_ai_review')->field('id')->where($aWhere)->find();
|
||||
$iLogId = empty($aAiReview['id']) ? 0 : $aAiReview['id'];
|
||||
//新增
|
||||
if(empty($iLogId)){
|
||||
@@ -91,7 +91,8 @@ class Aireview
|
||||
}
|
||||
//查询文章审核内容
|
||||
$aWhere = ['article_id' => $aParam['article_id']];
|
||||
$aAiReview = Db::table('t_article_ai_review')->where($aWhere)->find();
|
||||
$aAiReview = Db::name('article_ai_review')->where($aWhere)->find();
|
||||
|
||||
return ['status' => 1,'msg' => 'Successfully obtained article review content','data' => $aAiReview];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user