1
This commit is contained in:
@@ -587,6 +587,25 @@ class Journal extends Controller {
|
||||
return json(['code' => 0, 'msg' => 'success', 'data' => ['stage' => $stage_info, 'articleList' => $list]]);
|
||||
}
|
||||
|
||||
public function getJournalOnlineForLx(){
|
||||
$data = $this->request->post();
|
||||
$rule = new Validate([
|
||||
"journal_id"=>"require"
|
||||
]);
|
||||
if(!$rule->check($data)){
|
||||
return jsonError($rule->getError());
|
||||
}
|
||||
$journal_info = $this->journal_obj->where("journal_id",$data['journal_id'])->find();
|
||||
if($journal_info['cycle']!=0){
|
||||
return jsonError("error");
|
||||
}
|
||||
$stage_info = $this->journal_stage_obj->where("stage_year",date("Y"))->where("state",0)->find();
|
||||
$list = $this->article_obj->where("journal_stage_id",$stage_info['journal_stage_id'])->where("lx_online",0)->where("state",0)->select();
|
||||
$re['list'] = $list;
|
||||
|
||||
return jsonSuccess($re);
|
||||
}
|
||||
|
||||
private function getAuthor($article) {
|
||||
$where['article_id'] = $article['article_id'];
|
||||
$where['state'] = 0;
|
||||
|
||||
Reference in New Issue
Block a user