From f845b3c80414810dd865363126ef81da43ec3d69 Mon Sep 17 00:00:00 2001 From: wangjinlei <751475802@qq.com> Date: Mon, 5 Jan 2026 15:16:12 +0800 Subject: [PATCH] figer latex update --- application/api/controller/Article.php | 28 ++++++++++------------- application/api/controller/Production.php | 2 +- 2 files changed, 13 insertions(+), 17 deletions(-) diff --git a/application/api/controller/Article.php b/application/api/controller/Article.php index 8257549..f6d6b98 100644 --- a/application/api/controller/Article.php +++ b/application/api/controller/Article.php @@ -4616,20 +4616,10 @@ class Article extends Base $where['editor_id'] = $uidres[0]; } $where['state'] = 0; - $list = $this->journal_obj->where($where)->select(); - - // //获取期刊封面 chengxiaoling 20251027 start - // if(!empty($list)){ - // $aParam = ['issn' => array_column($list, 'issn')]; - // $sUrl = 'http://journalapi.tmrjournals.com/public/index.php/'; - // $sUrl = $sUrl."api/Supplementary/getJournal"; - // $aResult = object_to_array(json_decode(myPost1($sUrl,$aParam),true)); - // $aResult = empty($aResult['data']) ? [] : array_column($aResult['data'], 'icon','issn'); - // foreach ($list as $key => $value) { - // $list[$key]['journal_icon'] = empty($aResult[$value['issn']]) ? '' : $aResult[$value['issn']]; - // } - // } - // //获取期刊封面 chengxiaoling 20251027 end + $list = $this->journal_obj + ->field("journal_id,title,issn,editorinchief,zname,abbr,alias,editor_id,staff_id,level, + jabbr,jour_num,jour_price,email,cycle,scope,fee,kfen,website,journal_icon,apc_url,state") + ->where($where)->select(); return json($list); } @@ -4639,7 +4629,10 @@ class Article extends Base public function getJournalOutLx() { $editorid = $this->request->post('editor_id'); - $list = $this->journal_obj->where('editor_id', $editorid)->where('journal_id', 'not in', '2,3,15')->select(); + $list = $this->journal_obj + ->field("journal_id,title,issn,editorinchief,zname,abbr,alias,editor_id,staff_id,level, + jabbr,jour_num,jour_price,email,cycle,scope,fee,kfen,website,journal_icon,apc_url,state") + ->where('editor_id', $editorid)->where('journal_id', 'not in', '2,3,15')->select(); return json($list); } @@ -4748,7 +4741,10 @@ class Article extends Base if (!$res) { return jsonError('no this user!'); } - $journals = $this->journal_obj->where('editor_id', $res['user_id'])->where('journal_id', 'in', '2,3,15')->select(); + $journals = $this->journal_obj + ->field("journal_id,title,issn,editorinchief,zname,abbr,alias,editor_id,staff_id,level, + jabbr,jour_num,jour_price,email,cycle,scope,fee,kfen,website,journal_icon,apc_url,state") + ->where('editor_id', $res['user_id'])->where('journal_id', 'in', '2,3,15')->select(); $re['journals'] = $journals; return jsonSuccess($re); } diff --git a/application/api/controller/Production.php b/application/api/controller/Production.php index 44db523..7564aac 100644 --- a/application/api/controller/Production.php +++ b/application/api/controller/Production.php @@ -3252,7 +3252,7 @@ class Production extends Base echo $res; } - private function tableCovertLatex($amt_id, $references) + public function tableCovertLatex($amt_id, $references) { $table_info = $this->article_main_table_obj->where('amt_id', $amt_id)->find(); $tableData = json_decode($table_info['table_data'], true);