diff --git a/application/api/controller/Journal.php b/application/api/controller/Journal.php index 862d0a6..4136124 100644 --- a/application/api/controller/Journal.php +++ b/application/api/controller/Journal.php @@ -89,7 +89,7 @@ class Journal extends Base { public function getJournalByeditor() { $user_id = $this->request->post('user_id'); - $list = $this->journal_obj->where('editor_id',$user_id)->select(); + $list = $this->journal_obj->where('editor_id',$user_id)->where("state",0)->select(); $re['journals'] = $list; return jsonSuccess($re); } diff --git a/application/api/controller/User.php b/application/api/controller/User.php index 1815121..3e2521a 100644 --- a/application/api/controller/User.php +++ b/application/api/controller/User.php @@ -118,6 +118,19 @@ class User extends Base }else{ $where['email'] = ["<>",""]; } + if(isset($data['doi'])&&$data['doi']!=''){ + if(strpos($data['doi'],"10.53388/")){ + $doi = substr($data['doi'],9); + }else{ + $doi = trim($data['doi']); + } + $p_info = $this->production_article_obj->where("doi",$doi)->where("state",2)->find(); + if($p_info&&$p_info['article_id']>0){ + $where['article_id'] = $p_info['article_id']; + }else{ + return jsonError("not find"); + } + } $authors = $this->article_author_obj->where($where)->group("email")->order("art_aut_id desc")->page($data['page'],$data['limit'])->select(); $count = $this->article_author_obj->where($where)->group("email")->order("art_aut_id desc")->count(); foreach ($authors as $k =>$v){