This commit is contained in:
wangjinlei
2021-08-30 11:43:22 +08:00
parent 68de3a8fd6
commit 375b62ab9d
7 changed files with 453 additions and 17 deletions

View File

@@ -538,6 +538,24 @@ class Article extends Controller {
return jsonSuccess($re);
}
/**
* 获取liferesearch的文章详情
*/
public function getLifeResearch(){
echo "<h2>Life Research</h2>";
$list = $this->article_obj->where('journal_id',14)->where('state',0)->select();
echo "<span>Total number of articles:". count($list)."</span><br><br><br>";
foreach ($list as $k => $v) {
echo '<strong>'.($k+1).'. '.$v['title'].'</strong>('.$v['type'].')<br>';
$au = $this->article_author_obj->where('article_id',$v['article_id'])->where('state',0)->select();
foreach ($au as $val){
echo '&nbsp;&nbsp;&nbsp;&nbsp;';
echo $val['author_name'].'('.$val['author_country'].')<br>';
}
echo '<br>';
}
}
/**
* @title 获取文章text文件
* @description 获取文章text文件