1
This commit is contained in:
@@ -2223,8 +2223,12 @@ class Article extends Base
|
||||
$authors = $this->article_author_obj->where('article_id', $article_id)->where('is_report', 1)->where('state', 0)->select();
|
||||
$user_id = $article_info['user_id'];
|
||||
$g_index = 0;
|
||||
$google_time = 0;
|
||||
foreach ($authors as $v) {
|
||||
$c_user = $this->user_obj->where('email', $v['email'])->find();
|
||||
if($google_time<$c_user['google_time']){//应对h指数为0的用户文章,先取是否填写过h指数为0的情况
|
||||
$google_time = $c_user['google_time'];
|
||||
}
|
||||
if ($c_user['google_index'] >= $g_index) {
|
||||
$user_id = $c_user['user_id'];
|
||||
$g_index = $c_user['google_index'];
|
||||
@@ -2275,6 +2279,26 @@ class Article extends Base
|
||||
$b_fen = 0;
|
||||
}
|
||||
|
||||
//当h指数为0 并且是编辑填写的
|
||||
if($user_info['google_index']==0&&$google_time>0){
|
||||
if($all_num>=8){
|
||||
$b_fen = 4;
|
||||
}elseif ($all_num==7){
|
||||
$b_fen = 3.5;
|
||||
}elseif ($all_num==6){
|
||||
$b_fen = 3;
|
||||
}elseif ($all_num==5){
|
||||
$b_fen = 2;
|
||||
}elseif ($all_num==4){
|
||||
$b_fen = 1.5;
|
||||
}elseif ($all_num >= 1){
|
||||
$b_fen = 1;
|
||||
}else{
|
||||
$b_fen = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$fen += $b_fen;
|
||||
//国家
|
||||
$c_fen = 0;
|
||||
|
||||
Reference in New Issue
Block a user