This commit is contained in:
wangjinlei
2022-08-21 15:47:34 +08:00
parent cfac81c806
commit 4dd8910aaa
4 changed files with 141 additions and 4 deletions

130
.env Normal file
View File

@@ -0,0 +1,130 @@
[emailtemplete]
pre = '<!doctype html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>TMR</title>
<link rel="shortcut icon" href="img/tmr3.png" type="image/x-icon"/>
</head>
<body>
<table cellpadding="0" cellspacing="0" align="center" width="750"
style="border: 1px solid #e6e6e6;border-radius: 10px;border-collapse: collapse;border-style:hidden; box-shadow: 0 0 0 1px #e6e6e6;overflow:hidden;margin: 2px auto;">
<tbody>
<tr>
<td background="#FFFFFF">
<table cellpadding="0" cellspacing="0" background="#FFFFFF">
<tbody>
<tr background="https://www.tmrjournals.com/img/post_banneru.png">
<td width="200" height="100" colspan="1" rowspan="1"
style="font-family: sans-serif; vertical-align: top;font-size: 14px;">
<a href="https://www.tmrjournals.com/" target="_blank" style="text-decoration: none">
<img src="https://www.tmrjournals.com/img/tmr.png" width="120"
style="margin: 23px 0 0 30px">
<h3 style="font-size: 12px;color: #214b3c;font-weight: bold;margin: 2px 0 10px 30px;letter-spacing: -0.3px">TMR
Publishing Group</h3>
</a>
</td>
<td width="550" height="100" colspan="1" rowspan="1"
style="font-family: sans-serif; vertical-align: top;font-size: 14px;">
<a href="https://www.tmrjournals.com" target="_blank"
style="color: #333;font-size: 15px;margin: 0 0 0 40px;text-decoration: none;letter-spacing:-0.5px;text-shadow: 0 0 4px #fff;line-height: 95px">Home Page</a>
<b style="margin: 0 5px;color: #333;">|</b>
<a href="https://www.tmrjournals.com/rev_ver.html" target="_blank"
style="color: #333;font-size: 15px;text-decoration: none;letter-spacing:-0.5px;text-shadow: 0 0 4px #fff">Scientist Community</a>
<b style="margin: 0 5px;color: #333;">|</b>
<a href="https://www.tmrjournals.com/tmrde/" target="_blank"
style="color: #333;font-size: 15px;text-decoration: none;letter-spacing:-0.5px;text-shadow: 0 0 4px #fff">Database</a>
<b style="margin: 0 5px;color: #333;">|</b>
<a href="https://submission.tmrjournals.com/" target="_blank"
style="color: #333;font-size: 15px;text-decoration: none;letter-spacing:-0.5px;text-shadow: 0 0 4px #fff">Submission System</a>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td background="#FFFFFF">
<table cellpadding="0" cellspacing="0" background="#FFFFFF">
<tbody>
<tr>
<td width="750" height="40" colspan="0" rowspan="0">
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td background="#FFFFFF">
<table cellpadding="0" cellspacing="0" background="#FFFFFF">
<tbody>
<tr>
<td width="30" height="87" colspan="1" rowspan="1">
</td>
<td width="688" height="87" colspan="1" rowspan="1"
style="font-family:sans-serif; vertical-align: top;font-size: 14px;">
<p style="line-height:24px;text-align:left;">'
net = '</p>
</td>
<td width="32" height="87" colspan="1" rowspan="1">
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td background="#FFFFFF">
<table cellpadding="0" cellspacing="0" background="#FFFFFF">
<tbody>
<tr>
<td width="750" height="30" colspan="0" rowspan="0">
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td background="#FFFFFF">
<table cellpadding="0" cellspacing="0" background="#FFFFFF">
<tbody>
<tr style="background-color: #e1eeea">
<td width="750" height="110" colspan="1" rowspan="1"
style="font-family:sans-serif; vertical-align: top;font-size: 14px;">
<p style="margin: 20px 0 0 30px;line-height: 24px"> Copyright © TMR Publishing Group Limited. <br>
E-Mail: publisher@tmrjournals.com | https://www.tmrjournals.com <br>
Telephone: +64 02108293806</p>
</td>
<td>
<img src="https://www.tmrjournals.com/img/post_erweim.png"
style="width: 90px;margin: 0 30px 0 0">
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</body>
<script>
</script>
</html>'

View File

@@ -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;

View File

@@ -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";

View File

@@ -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){