This commit is contained in:
wangjinlei
2022-12-07 10:37:56 +08:00
parent 3bfc55519b
commit 6cd29940ee
5 changed files with 65 additions and 3 deletions

View File

@@ -456,6 +456,13 @@ class Article extends Controller {
$insert['tradition'] = isset($data['tradition'])?$data['tradition']:'';
$insert['keywords'] = $data['keywords'];
$insert['npp'] = $data['npp'];
$sort = 0;
if($journal_info['journal_id']==2||$journal_info['journal_id']==17||$journal_info['journal_id']==18){
$sort = intval(substr($data['npp'],-2));
}else{
$sort = $data['npp'];
}
$insert['sort'] = $sort;
$insert['file_pdf'] = date('Ymd').DS.$file_name;
$insert['is_public'] = 1;
$insert['ctime'] = time();
@@ -477,7 +484,7 @@ class Article extends Controller {
$ca_au_id = true;
foreach($authors as $v){
$insert_author['article_id'] = $aid;
$insert_author['author_name'] = $v['first_name'].' '.$v['last_name'];
$insert_author['author_name'] = $journal_info['journal_id']==22?$v['last_name'].$v['first_name']:$v['first_name'].' '.$v['last_name'];
$insert_author['first_name'] = $v['first_name'];
$insert_author['last_name'] = $v['last_name'];
$insert_author['author_country'] = $v['author_country'];