1
This commit is contained in:
@@ -27,6 +27,7 @@ class Article extends Controller {
|
||||
protected $journal_abs_obj = '';
|
||||
protected $article_to_topic_obj = '';
|
||||
protected $article_main_obj = '';
|
||||
protected $article_cite_obj = '';
|
||||
|
||||
public function __construct(\think\Request $request = null) {
|
||||
parent::__construct($request);
|
||||
@@ -43,6 +44,7 @@ class Article extends Controller {
|
||||
$this->journal_abs_obj = Db::name('journal_abstracting');
|
||||
$this->article_to_topic_obj = Db::name('article_to_topic');
|
||||
$this->article_main_obj = Db::name('article_main');
|
||||
$this->article_cite_obj = Db::name("article_cite");
|
||||
}
|
||||
|
||||
|
||||
@@ -606,6 +608,21 @@ class Article extends Controller {
|
||||
return jsonSuccess($re);
|
||||
}
|
||||
|
||||
/**获取文章引用
|
||||
* @return void
|
||||
*/
|
||||
public function getArticleCites(){
|
||||
$data = $this->request->post();
|
||||
$rule = new Validate([
|
||||
"article_id"=>"require"
|
||||
]);
|
||||
if(!$rule->check($data)){
|
||||
return jsonError($rule->getError());
|
||||
}
|
||||
$list = $this->article_cite_obj->where("article_id",$data['article_id'])->select();
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @title 获取文章ris文件
|
||||
* @description 获取文章ris文件
|
||||
|
||||
Reference in New Issue
Block a user