This commit is contained in:
wangjinlei
2022-04-08 14:01:38 +08:00
parent 2b127afc44
commit a0eacfd144
10 changed files with 192 additions and 192 deletions

View File

@@ -387,9 +387,9 @@ class Reviewer extends Controller
//发送email提醒
if ($type != 'editor') {
// $tt = 'Dear editor,<br>';
// $tt .= 'Please check the new comments from the reviewer.';
// sendEmail($editor_info['email'], $journal_info['title'], $journal_info['title'], $tt, $journal_info['email'], $journal_info['epassword']);
$tt = 'Dear editor,<br>';
$tt .= 'Please check the new comments from the reviewer.';
sendEmail($editor_info['email'], $journal_info['title'], $journal_info['title'], $tt, $journal_info['email'], $journal_info['epassword']);
$sendEditor = [
'title' => $journal_info['title'], // 邮件标题
'content' => 'Dear editor,<br>Please check the new comments from the reviewer.', //邮件内容
@@ -400,7 +400,7 @@ class Reviewer extends Controller
'sendPassword' => $journal_info['epassword'], // 期刊密码
'from_name' => $journal_info['title']
];
Queue::push('app\api\job\domail@fire', $sendEditor, 'domail');
// Queue::push('app\api\job\domail@fire', $sendEditor, 'domail');
}
//保存usermsg
@@ -553,8 +553,8 @@ class Reviewer extends Controller
'sendPassword' => $journal_info['epassword'], // 期刊密码
'from_name' => $journal_info['title']
];
Queue::push('app\api\job\domail@fire', $sendEditor, 'domail');
//sendEmail($reviewer_info['email'], $journal_info['title'], $journal_info['title'], $tt, $journal_info['email'], $journal_info['epassword']);
// Queue::push('app\api\job\domail@fire', $sendEditor, 'domail');
sendEmail($reviewer_info['email'], $journal_info['title'], $journal_info['title'], $tt, $journal_info['email'], $journal_info['epassword']);
return jsonSuccess([]);
}
@@ -732,8 +732,8 @@ class Reviewer extends Controller
'sendPassword' => $journal_info['epassword'], // 期刊密码
'from_name' => $journal_info['title']
];
Queue::push('app\api\job\domail@fire', $sendEditor, 'domail');
//sendEmail($editor_info['email'], $journal_info['title'], $journal_info['title'], $tt, $journal_info['email'], $journal_info['epassword']);
// Queue::push('app\api\job\domail@fire', $sendEditor, 'domail');
sendEmail($editor_info['email'], $journal_info['title'], $journal_info['title'], $tt, $journal_info['email'], $journal_info['epassword']);
//发送email感谢reviewer并携带附件
$reviewer_info = $this->user_obj->where('user_id', $art_rev_info['reviewer_id'])->find();
@@ -753,9 +753,9 @@ class Reviewer extends Controller
'from_name' => $journal_info['title'],
'attachment_url' => $reviewer_ZS
];
Queue::push('app\api\job\domail@fire', $sendReviewer, 'domail');
// Queue::push('app\api\job\domail@fire', $sendReviewer, 'domail');
//sendEmail($reviewer_info['email'], 'Your contribution is greatly appreciated', $journal_info['title'], $tt1, $journal_info['email'], $journal_info['epassword'], $reviewer_ZS);
sendEmail($reviewer_info['email'], 'Your contribution is greatly appreciated', $journal_info['title'], $tt1, $journal_info['email'], $journal_info['epassword'], $reviewer_ZS);
//记录usermsg
add_usermsg($journal_info['editor_id'], 'Feedback questionnaire be uploaded.', '/articleReviewerDetail?id=' . $data['art_rev_id']);
@@ -999,9 +999,9 @@ class Reviewer extends Controller
'sendPassword' => $journal_info['epassword'], // 期刊密码
'from_name' => $journal_info['title']
];
Queue::push('app\api\job\domail@fire', $sendReviewer, 'domail');
// Queue::push('app\api\job\domail@fire', $sendReviewer, 'domail');
//sendEmail($user_info['email'], $journal_info['title'], $journal_info['title'], $tt, $journal_info['email'], $journal_info['epassword']);
sendEmail($user_info['email'], $journal_info['title'], $journal_info['title'], $tt, $journal_info['email'], $journal_info['epassword']);
$re['art_rev_id'] = $res;
return jsonSuccess($re);