This commit is contained in:
wangjinlei
2021-07-02 18:04:27 +08:00
parent a34439b183
commit 7f95e7ec98
6 changed files with 539 additions and 318 deletions

View File

@@ -186,7 +186,11 @@ class Article extends Controller {
$list = $this->article_author_obj->where($where)->select();
$frag = '';
foreach ($list as $k => $v) {
$frag = $frag == '' ? '' . $v['author_name'] : $frag . ', ' . $v['author_name'];
$ca = '';
if($v['orcid']!=''){
$ca = '<a href="https://orcid.org/'.$v['orcid'].'" target="_blank"><img src="img/or_id.png" alt="" style="width: 13px;margin-left: 3px;"></a>';
}
$frag = $frag == '' ? '' . $v['author_name'].$ca : $frag . ', ' . $v['author_name'].$ca;
}
return $frag;
}

View File

@@ -306,7 +306,11 @@ class Journal extends Controller {
$list = $this->article_author_obj->where($where)->select();
$frag = '';
foreach ($list as $k => $v) {
$frag = $frag == '' ? '' . $v['author_name'] : $frag . ', ' . $v['author_name'];
$ca = '';
if($v['orcid']!=''){
$ca = '<a href="https://orcid.org/'.$v['orcid'].'" target="_blank"><img src="img/or_id.png" alt="" style="width: 13px;margin-left: 3px;"></a>';
}
$frag = $frag == '' ? '' . $v['author_name'].$ca : $frag . ', ' . $v['author_name'].$ca;
}
return $frag;
}
@@ -719,7 +723,14 @@ class Journal extends Controller {
*/
public function getTopicForSubscribe() {
$data = $this->request->post();
$list = $this->journal_topic_obj->where('journal_id', $data['journal_id'])->where('state', 0)->where('is_final', 1)->select();
$list = $this->journal_topic_obj->where('journal_id', $data['journal_id'])->where('state', 0)->where('level', 2)->select();
// $pids = [];
// foreach ($list as $k => $v){
// if(!in_array($v['parent_id'], $pids)){
// $pids[] = $v['parent_id'];
// }
// }
// $tlist = $this->journal_topic_obj->where('journal_topic_id','in',$pids)->where('state',0)->select();
$re['topics'] = $list;
return jsonSuccess($re);
@@ -766,6 +777,33 @@ class Journal extends Controller {
return jsonSuccess([]);
}
public function pushEmail(){
die;
$list = $this->subscribe_journal_obj->where('journal_id',1)->select();
// $a = [];
// $a[] = ['email'=>'751475802@qq.com'];
// $a[] = ['email'=>'13662001490@126.com'];
foreach ($list as $v){
$tt = 'Dear Researcher,<br><br>';
$tt .= 'We are so kindly to  bring you a notice that we are glad to invite eminent people as the Reviewer for Traditional Medicine Research (ISSN 2413-3973).<br><br>';
$tt .= 'Traditional Medicine Research has been included in Emerging Sources Citation Index (ESCI), Embase, DOAJ, ProQuest, J-Gate, EuroPub, WHO-COVID-19 Database, Google Scholar, EBSCO, ect.<br><br>';
$tt .= 'TMR is a bimonthly, peer-reviewed open access journal. It is dedicated to report the research of the progress in clinical efficacy, action mechanism and theoretical research in the traditional medicine field. Including traditional medicine, ethnomedicine, herbal medicine, acupuncture and massage, rehabilitation, diet therapy, yoga, and other integrative medicine all over the world.<br><br>';
$tt .= 'If you interested in our invitation, please kindly send us your Resume and Photograph a d Email address to our Editorial office.<br><br>';
$tt .= 'Thank you for your attention to our invitation. If you have any questions, do not hesitate to contact us at tmr@tmrjournals.com. we look forward to a favorable reply.<br><br>';
$tt .= 'Best wishes,<br><br>';
$tt .= 'Editorial Office-Traditional Medicine Research<br>';
$tt .= 'Email: tmr@tmrjournals.com<br>';
$tt .= 'Traditional Medicine Research (TMR)';
$maidata['email'] = $v['email'];
$maidata['title'] = 'Traditional Medicine Research ISSN 2413-3973';
$maidata['content'] = $tt;
$maidata['tmail'] = 'publicrelations@tmrjournals.com';
$maidata['tpassword'] = 'pRWU999999';
Queue::push('app\api\job\mail@fire', $maidata, "mail");
}
}
/**
* @title 添加期刊话题订阅(批量)

View File

@@ -523,7 +523,11 @@ class Main extends Controller {
$list = $this->article_author_obj->where($where)->select();
$frag = '';
foreach ($list as $k => $v) {
$frag = $frag == '' ? '' . $v['author_name'] : $frag . ', ' . $v['author_name'];
$ca = '';
if($v['orcid']!=''){
$ca = '<a href="https://orcid.org/'.$v['orcid'].'" target="_blank"><img src="img/or_id.png" alt="" style="width: 13px;margin-left: 3px;"></a>';
}
$frag = $frag == '' ? '' . $v['author_name'].$ca : $frag . ', ' . $v['author_name'].$ca;
}
return $frag;
}

View File

@@ -288,6 +288,11 @@ class Special extends Controller {
$list = $this->article_author_obj->where($where)->select();
$frag = '';
foreach ($list as $k => $v) {
$ca = '';
if($v['orcid']!=''){
$ca = '<a href="https://orcid.org/'.$v['orcid'].'" target="_blank"><img src="img/or_id.png" alt="" style="width: 13px;margin-left: 3px;"></a>';
}
$frag = $frag == '' ? '' . $v['author_name'].$ca : $frag . ', ' . $v['author_name'].$ca;
$frag = $frag == '' ? '' . $v['author_name'] : $frag . ', ' . $v['author_name'];
}
return $frag;