This commit is contained in:
wangjinlei
2024-07-17 17:02:49 +08:00
parent 2632d3a22c
commit c57077e35f
6 changed files with 49 additions and 6 deletions

View File

@@ -3480,7 +3480,8 @@ class Article extends Base
$res = $this->user_obj->where('user_id', $user_id)->find();
if ($res['type'] == 1) { // 作者 - 修改author_act,并发送给编辑发邮件
$this->article_obj->where('article_id', $article_id)->update(['author_act' => 1]);
$editor = $this->user_obj->where('user_id', $article['editor_id'])->find();
$journal_info = $this->journal_obj->where("journal_id",$article['journal_id'])->find();
$editor = $this->user_obj->where('user_id', $journal_info['editor_id'])->find();
// 发邮件
$content = 'Dear editor,<br>please check the new feedback.';
sendEmail($editor['email'], $article['title'], $article['title'], $content, $article['email'], $article['epassword']);