新增方法
This commit is contained in:
@@ -1026,4 +1026,22 @@ class Finalreview extends Base
|
||||
return trim($this->sTouGaoUrl,'/').'/'.$sJumpUrl.'&r_id=' . $record_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* @title 获取文章的终审意见
|
||||
* @param article_id
|
||||
*/
|
||||
public function getArticleFinalReview($aParam = []){
|
||||
|
||||
//获取参数
|
||||
$aParam = empty($aParam) ? $this->request->post() : $aParam;
|
||||
//参数验证-文章ID
|
||||
$iArticleId = empty($aParam['article_id']) ? 0 : $aParam['article_id'];
|
||||
if(empty($iArticleId)){
|
||||
return json_encode(['status' => 2,'msg' => 'Please select a article']);
|
||||
}
|
||||
//查询审稿记录
|
||||
$aWhere = ['article_id' => $iArticleId,'state' => ['in',[1,2,3]]];
|
||||
$aReviewerFinal = Db::name('article_reviewer_final')->field('id,state,suggest_for_editor,suggest_for_author,update_time,reviewer_id,is_anonymous')->where($aWhere)->select();
|
||||
return json_encode(['status' => 1,'msg' => 'success','data' => $aReviewerFinal]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user