1
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -845,7 +845,7 @@ class Journal extends Controller
|
||||
->select();
|
||||
$tt = 'Greetings!<br>';
|
||||
$tt .= 'Thank you for your contribution to TMR Publishing Group and your active participation in the peer review process.<br>';
|
||||
$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 <br><br>";
|
||||
$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.<br>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 <br><br>";
|
||||
foreach($articles as $v){
|
||||
$tt .= "<a href='https://www.tmrjournals.com/article.html?J_num=1&a_id=".$v['article_id']."'>".$v['title']."</a><br>";
|
||||
$tt .= "Traditional Medicine Research. ".$v['stage_year']." ".$v['stage_vol']."(".$v['stage_no'].")<br>";
|
||||
@@ -861,7 +861,7 @@ class Journal extends Controller
|
||||
];
|
||||
$frag1[] = [
|
||||
'user_id'=>28,
|
||||
'email'=>'849192806@qq.com'
|
||||
'email'=>'tmr@tmrjournals.com'
|
||||
];
|
||||
|
||||
foreach($frag as $v){
|
||||
|
||||
Reference in New Issue
Block a user