diff --git a/application/api/controller/Article.php b/application/api/controller/Article.php index f74a5db..d2f544a 100644 --- a/application/api/controller/Article.php +++ b/application/api/controller/Article.php @@ -1204,7 +1204,7 @@ class Article extends Controller { . ' been submitted to the journal '.$journal_info['title'].'. The Editor-in-Chief would' . ' be most grateful if you could offer an opinion regarding its suitability for publication' . ' in the journal '.$journal_info['title'].'.
'; - $tt .= 'Please bring into our knowledge if there is any potential Conflict of Interest. If you agree to review this manuscript, we ask you to complete your review and submit it by submission system within 10 days of receipt of the manuscript.

'; + $tt .= 'Please bring into our knowledge if there is any potential Conflict of Interest. If you agree to review this manuscript, we ask you to complete your review and submit it by submission system within 14 days of receipt of the manuscript.

'; $tt .= 'Thank you for your consideration.
Look forward for your reply.
'; $tt .= 'Click here to review the article
'; // $tt .= 'Click here to review the article
'; diff --git a/application/api/controller/Reviewer.php b/application/api/controller/Reviewer.php index aa187a3..75a5202 100644 --- a/application/api/controller/Reviewer.php +++ b/application/api/controller/Reviewer.php @@ -718,12 +718,12 @@ class Reviewer extends Controller } //添加文章状态信息 - $insert_data['article_id'] = $article_info['article_id']; - $insert_data['content'] = 'Comments from the reviewer has been received'; - $insert_data['state_from'] = $article_info['state']; - $insert_data['state_to'] = $article_info['state']; - $insert_data['ctime'] = time(); - $this->article_msg_obj->insert($insert_data); + $in_data['article_id'] = $article_info['article_id']; + $in_data['content'] = 'Comments from the reviewer has been received'; + $in_data['state_from'] = $article_info['state']; + $in_data['state_to'] = $article_info['state']; + $in_data['ctime'] = time(); + $this->article_msg_obj->insert($in_data); //记录log //生成pdf文件 @@ -1006,12 +1006,12 @@ class Reviewer extends Controller sendEmail($user_info['email'], $journal_info['title'], $journal_info['title'], $tt, $journal_info['email'], $journal_info['epassword']); //添加文章状态信息 - $insert_data['article_id'] = $article_info['article_id']; - $insert_data['content'] = 'The reviewer has been appointed'; - $insert_data['state_from'] = $article_info['state']; - $insert_data['state_to'] = $article_info['state']; - $insert_data['ctime'] = time(); - $this->article_msg_obj->insert($insert_data); + $in_data['article_id'] = $article_info['article_id']; + $in_data['content'] = 'The reviewer has been appointed'; + $in_data['state_from'] = $article_info['state']; + $in_data['state_to'] = $article_info['state']; + $in_data['ctime'] = time(); + $this->article_msg_obj->insert($in_data); $re['art_rev_id'] = $res; diff --git a/application/api/controller/User.php b/application/api/controller/User.php index 2df1a4c..31b53f8 100644 --- a/application/api/controller/User.php +++ b/application/api/controller/User.php @@ -259,6 +259,37 @@ class User extends Controller $this->user_obj->insertGetId($inser_data); return jsonSuccess([]); } + + /** + * 获取所有编辑 + */ + public function getAllEditor(){ + $editors = $this->user_obj->where('type',2)->where('state',0)->select(); + //获取编辑管理的期刊 + foreach($editors as $k => $v){ + $cache_journals = $this->journal_obj->where('editor_id',$v['user_id'])->where('state',0)->select(); + $editors[$k]['journals'] = $cache_journals; + } + $re['editors'] = $editors; + return jsonSuccess($re); + } + + /** + * 修改编辑密码 + */ + public function changeEditorPassword(){ + $data = $this->request->post(); + // 验证规则 + $rule = new Validate([ + 'user_id'=>'require|number', + 'password'=>'require' + ]); + if(!$rule->check($data)){ + return json(['code' => 1,'msg'=>$rule->getError()]); + } + $this->user_obj->where('user_id',$data['user_id'])->update(['password'=>md5($data['password'])]); + return jsonSuccess([]); + } /**