小bug调整
This commit is contained in:
@@ -251,6 +251,46 @@ class Email extends Base
|
||||
|
||||
|
||||
|
||||
public function ntaPushEmail(){
|
||||
$journal_info = $this->journal_obj->where("journal_id",16)->find();
|
||||
// $ids = $this->board_to_journal_obj->where("journal_id",16)->where("state",0)->column("user_id");
|
||||
// $ids = $this->user_to_yboard_obj->where("journal_id",16)->where("end_date",">",1747380505)->column("user_id");
|
||||
$ids = $this->reviewer_to_journal_obj->where("journal_id",16)->where("state",0)->column("reviewer_id");
|
||||
|
||||
|
||||
$list = $this->user_obj->whereIn("user_id",$ids)->select();
|
||||
|
||||
// $list[] = "751475802@qq.com";
|
||||
// $list[] = "924627193@qq.com";
|
||||
|
||||
|
||||
|
||||
foreach ($list as $v){
|
||||
|
||||
$content = "Dear Dr. ".$v['realname'].",<br/><br/>";
|
||||
$content .= "We hereby inform you that Natural Therapy Advances will be merged into Integrative Medicine Discovery as of 19th May, 2025. We sincerely appreciate your long-term support and contributions for Natural Therapy Advances. If you are willing to continue serving as a Young Editorial Board Member/Editorial Board Member/Reviewer for the merged journal Integrative Medicine Discovery, please kindly confirm by replying to this email.<br/><br/>";
|
||||
$content .= "Thank you for your consideration.<br/>";
|
||||
$content .= "Look forward for your reply.<br/><br/>";
|
||||
$content .= "Sincerely,<br/>Editorial Office<br/>Natural Therapy Advances<br/>Email: nta@tmrjournals.com<br/>Website: https://www.tmrjournals.com/nta/<br/>";
|
||||
|
||||
$pre = Env::get('emailtemplete.pre');
|
||||
$net = Env::get('emailtemplete.net');
|
||||
$net1 = str_replace("{{email}}",$v['email'],$net);
|
||||
$mailbody=$pre.$content.$net1;
|
||||
$edata['email'] = $v['email'];
|
||||
$edata['title'] = "Notice: Merger of Natural Therapy Advances into Integrative Medicine Discovery";
|
||||
$edata['content'] = $mailbody;
|
||||
$edata['tmail'] = $journal_info['email'];
|
||||
$edata['tpassword'] = $journal_info['epassword'];
|
||||
// Queue::push('app\api\job\mail@fire', $edata, "tmail");
|
||||
}
|
||||
|
||||
return jsonSuccess($list);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public function getEmailAccounts(){
|
||||
$list = $this->email_account_obj->where("state",0)->select();
|
||||
|
||||
Reference in New Issue
Block a user