This commit is contained in:
wangjinlei
2022-05-16 12:18:31 +08:00
parent 464d3b4cdf
commit 154f90ce3d
3 changed files with 44 additions and 13 deletions

View File

@@ -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'].'. <br>';
$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.<br><br>';
$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.<br><br>';
$tt .= 'Thank you for your consideration.<br> Look forward for your reply.<br>';
$tt .= '<a href="'.$this->creatLoginUrlForreviewer($reviewer_info,$res).'">Click here to review the article</a><br>';
// $tt .= '<a href="https://submission.tmrjournals.com/">Click here to review the article</a><br>';

View File

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

View File

@@ -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([]);
}
/**