This commit is contained in:
wangjinlei
2022-07-31 21:25:42 +08:00
parent 37ecfb7fc0
commit 774ba572b8
3 changed files with 14 additions and 1 deletions

View File

@@ -631,6 +631,7 @@ class Journal extends Controller {
$list[$k]['topic'] = $cache_topic;
$list[$k]['cite'] = $cite;
$list[$k]['journal_title'] = choiseti1($v['article_id'],$journal_info['title']);
$list[$k]['authortitle'] = $this->getAuthor($v);
}

View File

@@ -61,6 +61,9 @@ function choiseJabbr($article_id,$jabbr){
if($article_id<1981&&$jabbr=="Toxicol Commun"){
return "Asian Toxicol Res";
}
if($article_id<2190&&$jabbr=="Food Health"){
return "Food Ther Health Care";
}
return $jabbr;
}
@@ -93,6 +96,9 @@ function choiseti($v){
if($v['article_id']<1981&&$v['journal_title']=="Toxicology Communications"){
return "Asian Toxicology Research";
}
if($v['article_id']<2190&&$v['journal_title']=="Food and Health"){
return "Food Therapy and Health Care";
}
return $v['journal_title'];
}
@@ -118,6 +124,9 @@ function choiseti1($article_id,$journal_title){
if($article_id<1981&&$journal_title=="Toxicology Communications"){
return "TMR Integrative Nursing";
}
if($article_id<2190&&$journal_title=="Food and Health"){
return "Food Therapy and Health Care";
}
return $journal_title;
}

View File

@@ -40,7 +40,10 @@ class Medicament extends Controller
$article_info = $this->article_obj->where('article_id', $data['article_id'])->find();
//检测当前药剂是否存在
$med_check = $this->medicament_obj->where('med_title', trim($data['med_title']))->whereOr('med_ename',trim($data['med_ename']))->where('med_state',0)->find();
$med_check = $this->medicament_obj
->where("med_title = '".trim($data['med_title'])."' or med_ename = '".trim($data['med_ename'])."'")
->where('med_state',0)
->find();
if($med_check){
return json(['code'=>2,'data'=>$med_check]);
}