This commit is contained in:
wangjinlei
2023-06-21 11:13:22 +08:00
parent 3bd136071d
commit 5679ccb8b0
3 changed files with 33 additions and 6 deletions

View File

@@ -413,15 +413,16 @@ class Promotion extends Base
//发送邮件
foreach ($list as $v) {
$template = str_replace("{{user_major}}", $this->getMajorOne($v['major']), $template);
$template = str_replace("{{user_name}}", $v['name'], $template);
$template = str_replace("{{unsubscribe}}", "https://submission.tmrjournals.com/api/Promotion/NoEmail?lib=" . $v['type'] . "&id=" . $v['id'], $template);
$template1 = $template;
$template1 = str_replace("{{user_major}}", $this->getMajorOne($v['major']), $template1);
$template1 = str_replace("{{user_name}}", $v['name'], $template1);
$template1 = str_replace("{{unsubscribe}}", "https://submission.tmrjournals.com/api/Promotion/NoEmail?lib=" . $v['type'] . "&id=" . $v['id'], $template1);
$email_title = $pro_info['email_title'];
$email_title = str_replace("{{journal_title}}", $journal_info['title'], $email_title);
$email_title = str_replace("{{journal_issn}}", $journal_info['issn'], $email_title);
$ali['email'] = $v['email'];
$ali['title'] = $email_title;
$ali['content'] = $template;
$ali['content'] = $template1;
$ali['has_hb'] = $pro_info['has_hb'];
Queue::push('app\api\job\mail@promotion', $ali, "tmail");