From 4f52a5efc7bd015d5b223dc6827ad05d0d216981 Mon Sep 17 00:00:00 2001 From: wangjinlei <751475802@qq.com> Date: Fri, 16 May 2025 15:34:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8Fbug=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/controller/Email.php | 40 +++++++++++++++++++++++ application/api/controller/Production.php | 1 - 2 files changed, 40 insertions(+), 1 deletion(-) diff --git a/application/api/controller/Email.php b/application/api/controller/Email.php index 125f187..6466b29 100644 --- a/application/api/controller/Email.php +++ b/application/api/controller/Email.php @@ -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'].",

"; + $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.

"; + $content .= "Thank you for your consideration.
"; + $content .= "Look forward for your reply.

"; + $content .= "Sincerely,
Editorial Office
Natural Therapy Advances
Email: nta@tmrjournals.com
Website: https://www.tmrjournals.com/nta/
"; + + $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(); diff --git a/application/api/controller/Production.php b/application/api/controller/Production.php index a4f009d..f80c601 100644 --- a/application/api/controller/Production.php +++ b/application/api/controller/Production.php @@ -773,7 +773,6 @@ class Production extends Base $pra['npp'] = $p_info['npp']; $pra['authors'] = json_encode($authors); $pra['organs'] = json_encode($organs); - $res = object_to_array(json_decode(myPost($url, $pra))); if ($res['code'] == 0) { $r_update['state'] = 2;