公共方法

This commit is contained in:
chengxl
2025-07-22 16:40:27 +08:00
parent 41063dfd06
commit fb7db7aaa1
5 changed files with 373 additions and 476 deletions

View File

@@ -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];
}
}