1
This commit is contained in:
@@ -760,7 +760,7 @@ class Publish extends Controller {
|
||||
public function getCiteDate() {
|
||||
$data = $this->request->post();
|
||||
// $data['journal_id'] = 1;
|
||||
$list = $this->article_cite_obj->where('journal_id', $data['journal_id'])->select();
|
||||
$list = $this->article_cite_obj->where('journal_id', $data['journal_id'])->where("state",1)->where("is_wos",1)->select();
|
||||
$frag = [];
|
||||
$frag['country'] = [];
|
||||
$frag['topic'] = [];
|
||||
@@ -770,12 +770,17 @@ class Publish extends Controller {
|
||||
foreach ($list as $v) {
|
||||
$cache_article = $this->article_obj->where('article_id', $v['article_id'])->find();
|
||||
//判断国家
|
||||
$cou_res = $this->checkCountry($cache_article);
|
||||
if ($cou_res == 'n') {
|
||||
isset($frag['country']['n']) ? $frag['country']['n']++ : $frag['country']['n'] = 1;
|
||||
} else {
|
||||
if($v['is_china']==2){
|
||||
isset($frag['country']['w']) ? $frag['country']['w']++ : $frag['country']['w'] = 1;
|
||||
}else{
|
||||
isset($frag['country']['n']) ? $frag['country']['n']++ : $frag['country']['n'] = 1;
|
||||
}
|
||||
// $cou_res = $this->checkCountry($cache_article);
|
||||
// if ($cou_res == 'n') {
|
||||
// isset($frag['country']['n']) ? $frag['country']['n']++ : $frag['country']['n'] = 1;
|
||||
// } else {
|
||||
// isset($frag['country']['w']) ? $frag['country']['w']++ : $frag['country']['w'] = 1;
|
||||
// }
|
||||
//判断领域
|
||||
$topic_res = $this->checkTopic($cache_article);
|
||||
foreach ($topic_res as $key => $val) {
|
||||
|
||||
Reference in New Issue
Block a user