From 39409b3bdeadee71fbd22ecb44f083d889ddd439 Mon Sep 17 00:00:00 2001 From: chengxl Date: Thu, 12 Feb 2026 13:28:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B9=E6=B3=95=E6=96=B0=E5=A2=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/controller/Supplementary.php | 31 ++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/application/api/controller/Supplementary.php b/application/api/controller/Supplementary.php index 2e02d4c..5f63ccb 100644 --- a/application/api/controller/Supplementary.php +++ b/application/api/controller/Supplementary.php @@ -198,5 +198,36 @@ class Supplementary extends Controller $aJournal = Db::name('journal')->where($aWhere)->find(); return json(['status' => 1,'msg' => 'success','data' => $aJournal]); } + + /** + * @title 获取文章底部信息 + * @description 获取期刊编辑接口 + */ + public function getProductiArticleFooter(){ + + $aParam = $this->request->post(); + + //官网文章ID + $iWarticleId = empty($aParam['w_article_id']) ? 0 : $aParam['w_article_id']; + if(empty($iWarticleId)){ + return json(['status' => 2,'msg' => 'Please select an article']); + } + //查询文章信息 + $aWhere = ['article_id' => $iWarticleId,'state' => ['<>',1]]; + $aArticle = Db::name('article')->field('article_id,journal_id,journal_stage_id')->where($aWhere)->find(); + if(empty($aArticle)){ + return json(['status' => 3,'msg' => 'No production article information found']); + } + + //查询分期信息 + $iJournalStageId = empty($aArticle['journal_stage_id']) ? 0 : $aArticle['journal_stage_id']; + $aWhere = ['state' => 0,'journal_stage_id' => $iJournalStageId]; + $aJournalStage = Db::name('journal_stage')->where($aWhere)->find(); + + //查询文章生产信息 + $sUrl = "http://api.tmrjournals.com/public/index.php/api/Supplementary/getProductiArticleFooter";//http://zmzm.tougao.dev.com + $aResult = json_decode(myPost($sUrl, ['w_article_id' => $iWarticleId,'journal_stage' => $aJournalStage]), true); + return json($aResult); + } } ?> \ No newline at end of file