小bug调整

This commit is contained in:
wangjinlei
2025-05-21 11:30:36 +08:00
parent d47bc1819e
commit 8cf196f992
4 changed files with 19 additions and 13 deletions

View File

@@ -252,37 +252,37 @@ 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");
$journal_info = $this->journal_obj->where("journal_id",6)->find();
// $ids = $this->board_to_journal_obj->where("journal_id",6)->where("state",0)->column("user_id");
$ids = $this->user_to_yboard_obj->where("journal_id",6)->where("end_date",">",1747380505)->column("user_id");
// $ids = $this->reviewer_to_journal_obj->where("journal_id",6)->where("state",0)->column("reviewer_id");
$list = $this->user_obj->whereIn("user_id",$ids)->select();
// $list[] = "751475802@qq.com";
// $list[] = "924627193@qq.com";
// $list[] = ["realname"=>"wangjinlei","email"=>"751475802@qq.com"];
// $list[] = ["realname"=>"zhuwenjing","email"=>"1300364247@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 .= "We hereby inform you that Food and health will be merged into Integrative Medicine Discovery as of 23th May, 2025. We sincerely appreciate your long-term support and contributions for Food and health, lf you are wiling to continue serving as a Young Editorial Board Member/EditoriaBoard 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/>";
$content .= "Sincerely,<br/>Editorial Office<br/>Food and health<br/>Email: foodhealth@tmrjournals.com<br/>Website: https://www.tmrjournals.com/fh/<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['title'] = "Notice: Merger of Food and health journal 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");
Queue::push('app\api\job\mail@fire', $edata, "tmail");
}
return jsonSuccess($list);