This commit is contained in:
wangjinlei
2023-08-31 16:21:39 +08:00
parent d7edd953a4
commit adc0bd0e90
8 changed files with 232 additions and 50 deletions

View File

@@ -931,6 +931,14 @@ class Reviewer extends Base
// sendEmail("1586428462@qq.com", "title", "ttttt", "content", 'tmr@tmrjournals.com', "Wu9999999999", $reviewer_ZS);
// }
/**提交复审
* @return \think\response\Json
* @throws \think\Exception
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
* @throws \think\exception\PDOException
*/
public function questionRepeat(){
$data = $this->request->post();
$rule = new Validate([
@@ -941,6 +949,9 @@ class Reviewer extends Base
return jsonError($rule->getError());
}
$repeat_info = $this->article_reviewer_repeat_obj->where('art_rev_rep_id',$data['art_rev_rep_id'])->find();
$art_info = $this->article_reviewer_obj->where('art_rev_id',$repeat_info['art_rev_id'])->find();
$article_info = $this->article_obj->where('article_id',$art_info['article_id'])->find();
$journal_info = $this->journal_obj->where('journal_id',$article_info['journal_id'])->find();
$update['recommend'] = $data['recommend'];
$update['stime'] = time();
if($data['recommend']==3){
@@ -957,6 +968,10 @@ class Reviewer extends Base
//复审后发送邮件
//增加usermsg
add_usermsg($journal_info['editor_id'], 'New re_reviewer', '/articleReviewerDetail?id=' . $art_info['art_rev_id']);
return jsonSuccess([]);
}