1
This commit is contained in:
@@ -465,6 +465,7 @@ class Article extends Controller {
|
||||
$list[$k]['mains'] = [];//getArticleMains($v['article_id']);
|
||||
$cm = $this->article_main_obj->where('article_id',$v['article_id'])->where('state',0)->find();
|
||||
$list[$k]['has_mains'] = $cm?1:0;
|
||||
$list[$k]["cite_num"] = $this->article_cite_obj->where("article_id",$v['article_id'])->where("state",1)->count();
|
||||
}
|
||||
//标题斜体
|
||||
foreach ($list as $k => $v) {
|
||||
@@ -619,8 +620,10 @@ class Article extends Controller {
|
||||
if(!$rule->check($data)){
|
||||
return jsonError($rule->getError());
|
||||
}
|
||||
$list = $this->article_cite_obj->where("article_id",$data['article_id'])->select();
|
||||
$list = $this->article_cite_obj->where("article_id",$data['article_id'])->where("state",1)->select();
|
||||
$re['list'] = $list;
|
||||
|
||||
return jsonSuccess($re);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -40,6 +40,7 @@ class Journal extends Controller {
|
||||
protected $journal_for_author;
|
||||
protected $journal_for_author_yc_obj = '';
|
||||
protected $article_main_obj = '';
|
||||
protected $article_cite_obj = '';
|
||||
|
||||
public function __construct(\think\Request $request = null) {
|
||||
parent::__construct($request);
|
||||
@@ -68,6 +69,7 @@ class Journal extends Controller {
|
||||
$this->journal_for_author = Db::name('journal_for_author');
|
||||
$this->journal_for_author_yc_obj = Db::name('journal_for_author_yc');
|
||||
$this->article_main_obj = Db::name("article_main");
|
||||
$this->article_cite_obj = Db::name("article_cite");
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -655,6 +657,7 @@ class Journal extends Controller {
|
||||
$list[$k]['mains'] = [];//getArticleMains($v['article_id']);
|
||||
$cm = $this->article_main_obj->where('article_id',$v['article_id'])->where('state',0)->find();
|
||||
$list[$k]['has_mains'] = $cm?1:0;
|
||||
$list[$k]["cite_num"] = $this->article_cite_obj->where("article_id",$v['article_id'])->where("state",1)->count();
|
||||
}
|
||||
|
||||
//获取作者
|
||||
|
||||
Reference in New Issue
Block a user