diff --git a/.env b/.env new file mode 100644 index 0000000..4afdd6d --- /dev/null +++ b/.env @@ -0,0 +1,130 @@ +[emailtemplete] +pre = ' + + + + + + TMR + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + +
+ + +

TMR + Publishing Group

+
+
+ Home Page + | + Scientist Community + | + Database + | + Submission System +
+
+ + + + + + + +
+
+
+ + + + + + + + + +
+ +

' + +net = '

+
+
+
+ + + + + + + +
+
+
+ + + + + + + + + +
+

Copyright © TMR Publishing Group Limited.
+ E-Mail: publisher@tmrjournals.com | https://www.tmrjournals.com
+ Telephone: +64 02108293806

+
+ +
+
+ + + + +' \ No newline at end of file diff --git a/application/api/controller/Journal.php b/application/api/controller/Journal.php index e8f1ca2..71db909 100644 --- a/application/api/controller/Journal.php +++ b/application/api/controller/Journal.php @@ -38,6 +38,7 @@ class Journal extends Controller { protected $subscribe_base_topic_obj = ''; protected $footer_obj = ''; protected $journal_for_author; + protected $journal_for_author_yc_obj = ''; public function __construct(\think\Request $request = null) { parent::__construct($request); @@ -64,6 +65,7 @@ class Journal extends Controller { $this->subscribe_base_topic_obj = Db::name('subscribe_base_topic'); $this->footer_obj = Db::name('footer'); $this->journal_for_author = Db::name('journal_for_author'); + $this->journal_for_author_yc_obj = Db::name('journal_for_author_yc'); } /** @@ -197,11 +199,12 @@ class Journal extends Controller { if (!$rule->check($data)) { return jsonError($rule->getError()); } + $noinjfa = $this->journal_for_author_yc_obj->where('journal_id',$data['journal_id'])->column('jfa_id'); $journals[]=0; $journals[]=$data['journal_id']; $list = $this->journal_for_author->where('journal_id','in',$journals)->where('pid',0)->where('jfa_state',0)->order("sort desc")->select(); foreach($list as $k => $v){ - $cache_list = $this->journal_for_author->where('journal_id','in',$journals)->where('pid',$v['jfa_id'])->where('jfa_state',0)->order("sort desc")->select(); + $cache_list = $this->journal_for_author->where('journal_id','in',$journals)->where('jfa_id',"not in",$noinjfa)->where('pid',$v['jfa_id'])->where('jfa_state',0)->order("sort desc")->select(); $list[$k]['children'] = $cache_list; } $re['forAuthors'] = $list; diff --git a/application/common.php b/application/common.php index 27b4a74..806b7c9 100644 --- a/application/common.php +++ b/application/common.php @@ -2,6 +2,7 @@ use PHPMailer\PHPMailer\PHPMailer; use think\Db; +use think\Env; //use TCPDF; // +---------------------------------------------------------------------- @@ -328,7 +329,10 @@ function aliemail($email,$title,$content){ vendor('aliemail.email'); $mailto=$email; $mailsubject=$title; - $mailbody=$content; + //组合邮件公共样式 + $pre = Env::get('emailtemplete.pre'); + $net = Env::get('emailtemplete.net'); + $mailbody=$pre.$content.$net; $smtpserver = "smtpdm-ap-southeast-1.aliyun.com"; $smtpserverport = 80; $smtpusermail = "propa@hellotmr.top"; diff --git a/application/master/controller/Journal.php b/application/master/controller/Journal.php index 7f08b45..0fb179a 100644 --- a/application/master/controller/Journal.php +++ b/application/master/controller/Journal.php @@ -845,7 +845,7 @@ class Journal extends Controller ->select(); $tt = 'Greetings!
'; $tt .= 'Thank you for your contribution to TMR Publishing Group and your active participation in the peer review process.
'; - $tt .= "According to Clarivate's latest policy (https://clarivate.com/news/clarivate-announces-changes-to-the-2023-journal-citation-reports/), Traditional Medicine Research (ISSN 2413-3973) will get the first Impact Factor in 2023. You are welcome to pay attention to the journal and submit manuscripts.Attached are some papers published in Traditional Medicine Research, which are related to your research field. You are always welcome to read and to share the articles and encourage you to submit your manuscripts to us through the following channels: www.tmrjournals.com/tmr

"; + $tt .= "According to Clarivate's latest policy (https://clarivate.com/news/clarivate-announces-changes-to-the-2023-journal-citation-reports/), Traditional Medicine Research (ISSN 2413-3973) will get the first Impact Factor in 2023. You are welcome to pay attention to the journal and submit manuscripts.
Attached are some papers published in Traditional Medicine Research, which are related to your research field. You are always welcome to read and to share the articles and encourage you to submit your manuscripts to us through the following channels: www.tmrjournals.com/tmr

"; foreach($articles as $v){ $tt .= "".$v['title']."
"; $tt .= "Traditional Medicine Research. ".$v['stage_year']." ".$v['stage_vol']."(".$v['stage_no'].")
"; @@ -861,7 +861,7 @@ class Journal extends Controller ]; $frag1[] = [ 'user_id'=>28, - 'email'=>'849192806@qq.com' + 'email'=>'tmr@tmrjournals.com' ]; foreach($frag as $v){