This commit is contained in:
wangjinlei
2023-01-29 17:41:34 +08:00
parent be445b252b
commit 333a5f9ca7
5 changed files with 70 additions and 36 deletions

View File

@@ -86,6 +86,12 @@ class Journal extends Controller {
// ->where('journal_id','<>',25)//临时去掉25号新刊 // ->where('journal_id','<>',25)//临时去掉25号新刊
->order(['j_journal.sort desc', 'j_journal.journal_id']) ->order(['j_journal.sort desc', 'j_journal.journal_id'])
->select(); ->select();
foreach($res as $k => $v){
if($v['journal_id']=='22'){
$res[$k]['title'] = "Chinese Quintessence Research 国学研究";
}
}
return json(['code' => 0, 'msg' => 'success', 'data' => ['journalList' => $res]]); return json(['code' => 0, 'msg' => 'success', 'data' => ['journalList' => $res]]);
} }

View File

@@ -68,6 +68,9 @@ function choiseJabbr($article_id,$jabbr){
if($article_id<2190&&$jabbr=="Food Health"){ if($article_id<2190&&$jabbr=="Food Health"){
return "Food Ther Health Care"; return "Food Ther Health Care";
} }
if($article_id<2687&&$jabbr=="Chin Quintessence Res"){
return "经典中医研究";
}
return $jabbr; return $jabbr;
} }
@@ -106,6 +109,9 @@ function choiseti($v){
if($v['article_id']<2190&&$v['journal_title']=="Food and Health"){ if($v['article_id']<2190&&$v['journal_title']=="Food and Health"){
return "Food Therapy and Health Care"; return "Food Therapy and Health Care";
} }
if($v['article_id']<2687&&$v['journal_title']=="Chin Quintessence Res"){
return "经典中医研究";
}
return $v['journal_title']; return $v['journal_title'];
} }
@@ -137,6 +143,9 @@ function choiseti1($article_id,$journal_title){
if($article_id<2190&&$journal_title=="Food and Health"){ if($article_id<2190&&$journal_title=="Food and Health"){
return "Food Therapy and Health Care"; return "Food Therapy and Health Care";
} }
if($article_id<2687&&$journal_title=="Chin Quintessence Res"){
return "经典中医研究";
}
return $journal_title; return $journal_title;
} }

View File

@@ -464,6 +464,7 @@ class Article extends Controller {
} }
$insert['sort'] = $sort; $insert['sort'] = $sort;
$insert['file_pdf'] = date('Ymd').DS.$file_name; $insert['file_pdf'] = date('Ymd').DS.$file_name;
$insert['mhoo'] = $data['mhoo'];
$insert['is_public'] = 1; $insert['is_public'] = 1;
$insert['ctime'] = time(); $insert['ctime'] = time();
Db::startTrans(); Db::startTrans();

View File

@@ -453,6 +453,7 @@ class Datebase extends Controller
$re['issue'] = $stage_info['issue_date'] . ", Volume " . $stage_info['stage_vol'] . " Issue " . $stage_info["stage_no"]; $re['issue'] = $stage_info['issue_date'] . ", Volume " . $stage_info['stage_vol'] . " Issue " . $stage_info["stage_no"];
$adate = []; $adate = [];
$alist = $this->article_obj->where("journal_stage_id", $data['journal_stage_id'])->where("state", 0)->orderRaw("npp + 0")->select(); $alist = $this->article_obj->where("journal_stage_id", $data['journal_stage_id'])->where("state", 0)->orderRaw("npp + 0")->select();
// $alist = $this->article_obj->where("journal_stage_id", $data['journal_stage_id'])->where("state", 0)->select();
foreach ($alist as $k => $v) { foreach ($alist as $k => $v) {
$cache["type"] = $v["type"]; $cache["type"] = $v["type"];
$cache["no"] = $v["npp"]; $cache["no"] = $v["npp"];

View File

@@ -1000,39 +1000,56 @@ class Journal extends Controller
*/ */
public function pushEmailToReviewer() public function pushEmailToReviewer()
{ {
$data = $this->request->post(); // $data = $this->request->post();
$topic_tem = Db::name('topic_tem'); // $topic_tem = Db::name('topic_tem');
$tems = $topic_tem->where('topic_id', $data['topic'])->where('state', 0)->select(); // $tems = $topic_tem->where('topic_id', $data['topic'])->where('state', 0)->select();
$frag = []; // $frag = [];
foreach ($tems as $k => $v) { // foreach ($tems as $k => $v) {
$url = "http://api.tmrjournals.com/public/index.php/api/Reviewer/getRevEmailByTopic"; $url = "http://api.tmrjournals.com/public/index.php/api/Reviewer/getReviewerOnChina";
$pag = []; // $pag = [];
$pag['topic'] = $v['p_title']; // $pag['topic'] = $v['p_title'];
$cache_res = object_to_array(json_decode(myPost($url, $pag))); $cache_res = object_to_array(json_decode(myPost($url)));
if ($cache_res['code'] == 0) { $frag = $cache_res['data']['emails'];
$emails = $cache_res['data']['reviewers']; // if ($cache_res['code'] == 0) {
foreach ($emails as $val) { // $emails = $cache_res['data']['reviewers'];
$frag[] = $val; // foreach ($emails as $val) {
} // $frag[] = $val;
} // }
} // }
$article_ids = $this->article_to_topic_obj->where('topic_id', $data['topic'])->where('state', 0)->column('article_id'); // }
$articles = $this->article_obj // $article_ids = $this->article_to_topic_obj->where('topic_id', $data['topic'])->where('state', 0)->column('article_id');
->field('j_article.*,j_journal_stage.stage_year,j_journal_stage.stage_vol,j_journal_stage.stage_no') // $articles = $this->article_obj
->join('j_journal_stage', 'j_journal_stage.journal_stage_id = j_article.journal_stage_id', 'left') // ->field('j_article.*,j_journal_stage.stage_year,j_journal_stage.stage_vol,j_journal_stage.stage_no')
->where('j_journal_stage.stage_year', '>=', '2020') // ->join('j_journal_stage', 'j_journal_stage.journal_stage_id = j_article.journal_stage_id', 'left')
->where('j_article.article_id', 'in', $article_ids) // ->where('j_journal_stage.stage_year', '>=', '2020')
->where('j_article.journal_id', 1) // ->where('j_article.article_id', 'in', $article_ids)
->where('j_article.state', 0) // ->where('j_article.journal_id', 1)
->select(); // ->where('j_article.state', 0)
$tt = 'Greetings!<br>'; // ->select();
$tt .= 'Thank you for your contribution to TMR Publishing Group and your active participation in the peer review process.<br>'; $tt = '尊敬的审稿人们,<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>"; 祝大家新年快乐我谨代表TMR出版集团向每一位审稿人致以最诚挚的祝福。<br/>
foreach ($articles as $v) { 在过去的一年里,您们的辛勤工作为我们的出版事业做出了巨大贡献。您们的专业知识和批判性思考帮助我们提高了出版物的质量,并使我们能够为读者提供最好的内容。<br/>
$tt .= "<a href='https://www.tmrjournals.com/article.html?J_num=1&a_id=" . $v['article_id'] . "'>" . $v['title'] . "</a><br>"; 特别要感谢您对中国科研的贡献,您的审核和审查使得我们能够发表高质量的研究论文,推动了世界科学发展。<br/>
$tt .= "Traditional Medicine Research. " . $v['stage_year'] . " " . $v['stage_vol'] . "(" . $v['stage_no'] . ")<br>"; 我们非常感谢您们对我们工作的支持和信任。我们期待着与您们继续合作,共同推动出版事业的发展。<br/>
$tt .= "<a href='https://www.tmrjournals.com/public/articlePDF/" . $v['file_pdf'] . "'>Download pdf</a><br><br><br>"; 祝您们新年快乐,身体健康,工作顺利!<br/>
} 吴雄志<br/>
wxz@tmrjournals.com<br/>
致敬, TMR出版集团首席执行官<br/><br/>
Dear Reviewers,<br/>
Wishing you all a very happy Chinese New Year! On behalf of TMR Publishing Group, I extend my warmest greetings to each and every one of you.<br/>
In the past year, your hard work has made a tremendous contribution to our publishing endeavors. Your expertise and critical thinking have helped us to improve the quality of our publications and provide our readers with the best content.<br/>
Special thanks for your contributions to Chinese research, your review and editing have enabled us to publish high-quality research papers, making important contributions to the scientific community worldwide.<br/>
We are deeply grateful for your support and trust in our work. We look forward to continuing to work with you and driving the advancement of publishing together.<br/>
Wishing you all a happy Chinese New Year, good health and success in your work!<br/>
Xiong-Zhi Wu<br/>
wxz@tmrjournals.com<br/>
Sincerely, CEO of TMR Publishing Group';
// 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>";
// $tt .= "<a href='https://www.tmrjournals.com/public/articlePDF/" . $v['file_pdf'] . "'>Download pdf</a><br><br><br>";
// }
@@ -1047,10 +1064,10 @@ class Journal extends Controller
]; ];
foreach ($frag as $v) { foreach ($frag as $v) {
$cache_tt = $tt . '<a href="http://api.tmrjournals.com/public/index.php/api/User/unAdvertForUser/uid/' . $v['user_id'] . '">Unsubscribe</a>'; // $cache_tt = $tt . '<a href="http://api.tmrjournals.com/public/index.php/api/User/unAdvertForUser/uid/' . $v['user_id'] . '">Unsubscribe</a>';
$maidata['email'] = $v['email']; $maidata['email'] = $v['email'];
$maidata['title'] = "Traditional Medicine Research will get the first Impact Factor (WOS) in 2023"; $maidata['title'] = "TMR出版集团祝您新春快乐";
$maidata['content'] = $cache_tt; $maidata['content'] = $tt;
// $maidata['tmail'] = 'publicrelations@tmrjournals.com'; // $maidata['tmail'] = 'publicrelations@tmrjournals.com';
// $maidata['tpassword'] = 'pRWU999999'; // $maidata['tpassword'] = 'pRWU999999';
// $maidata['tmail'] = 'ghr@tmrjournals.com'; // $maidata['tmail'] = 'ghr@tmrjournals.com';