user reviewer info 异常添加 testfrom

This commit is contained in:
wangjinlei
2025-05-22 16:03:01 +08:00
parent ebe6390d80
commit 72492e39cd

View File

@@ -252,33 +252,37 @@ class Email extends Base
public function ntaPushEmail(){
$journal_info = $this->journal_obj->where("journal_id",6)->find();
$journal_info = $this->journal_obj->where("journal_id",15)->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->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");
// $ids = $this->article_obj->whereIn("journal_id",[16,6,15])->column("user_id");
$list = $this->user_obj->whereIn("user_id",$ids)->select();
// $list[] = ["realname"=>"wangjinlei","email"=>"751475802@qq.com"];
// $list[] = ["realname"=>"zhuwenjing","email"=>"1300364247@qq.com"];
// $list = $this->user_obj->whereIn("user_id",$ids)->select();
$list[] = ["realname"=>"wangjinlei","email"=>"751475802@qq.com"];
$list[] = ["realname"=>"test","email"=>"924627193@qq.com"];
foreach ($list as $v){
$content = "Dear Dr. ".$v['realname'].",<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/>Food and health<br/>Email: foodhealth@tmrjournals.com<br/>Website: https://www.tmrjournals.com/fh/<br/>";
$content .= "We hope this message finds you well.<br/><br/>";
$content .= "We are writing to inform you that the Natural Therapy Advances and Food and Health, both previously published by TMR Publishing Group, have now officially merged into Integrative Medicine Discovery.<br/><br/>";
$content .= "As part of this transition, Integrative Medicine Discovery has expanded its focus to cover five key areas of research:<br/>1. Integrative Pharmacology<br/>2. Herbal Formulae<br/>3. Food Therapy<br/>4. Acupuncture and Massage<br/>5. Integrative Oncology<br/><br/>";
$content .= "We believe this strategic move will strengthen our ability to provide cutting-edge research and insights into these critical fields. If you have manuscripts for future submission, we warmly welcome you to consider submitting them to Integrative Medicine Discovery.<br/><br/>";
$content .= "Thank you for your ongoing interest and engagement with our journals. If you have any questions or need further information, please feel free to contact us.<br/><br/>";
$content .= "Best regards<br/>Editorial Office<br/>Integrative Medicine Discovery<br/>Email: imd@tmrjournals.com<br/>Website: https://www.tmrjournals.com/im/";
$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 Food and health journal into Integrative Medicine Discovery";
$edata['title'] = "Notice: Merger of Natural Therapy Advances and Food and Health into Integrative Medicine Discovery";
$edata['content'] = $mailbody;
$edata['tmail'] = $journal_info['email'];
$edata['tpassword'] = $journal_info['epassword'];