1
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user