From 0e48e91ec96c342620efa148a4628393ba765782 Mon Sep 17 00:00:00 2001 From: wangjinlei <751475802@qq.com> Date: Mon, 21 Oct 2024 17:51:11 +0800 Subject: [PATCH] 1 --- application/api/controller/Journal.php | 19 +++++++++++++++++++ application/master/controller/Datebase.php | 14 ++++++++++++++ 2 files changed, 33 insertions(+) diff --git a/application/api/controller/Journal.php b/application/api/controller/Journal.php index 83e71d4..0970fcf 100644 --- a/application/api/controller/Journal.php +++ b/application/api/controller/Journal.php @@ -587,6 +587,25 @@ class Journal extends Controller { return json(['code' => 0, 'msg' => 'success', 'data' => ['stage' => $stage_info, 'articleList' => $list]]); } + public function getJournalOnlineForLx(){ + $data = $this->request->post(); + $rule = new Validate([ + "journal_id"=>"require" + ]); + if(!$rule->check($data)){ + return jsonError($rule->getError()); + } + $journal_info = $this->journal_obj->where("journal_id",$data['journal_id'])->find(); + if($journal_info['cycle']!=0){ + return jsonError("error"); + } + $stage_info = $this->journal_stage_obj->where("stage_year",date("Y"))->where("state",0)->find(); + $list = $this->article_obj->where("journal_stage_id",$stage_info['journal_stage_id'])->where("lx_online",0)->where("state",0)->select(); + $re['list'] = $list; + + return jsonSuccess($re); + } + private function getAuthor($article) { $where['article_id'] = $article['article_id']; $where['state'] = 0; diff --git a/application/master/controller/Datebase.php b/application/master/controller/Datebase.php index ea1ae14..e2c0b81 100644 --- a/application/master/controller/Datebase.php +++ b/application/master/controller/Datebase.php @@ -730,6 +730,20 @@ class Datebase extends Controller } + public function dataPushForLx(){ + $data = $this->request->post(); + $rule = new Validate([ + "article_id"=>"require" + ]); + if(!$rule->check($data)){ + return jsonError($rule->getError()); + } + + $article_info = $this->article_obj->where("article_id",$data['article_id'])->find(); + + } + + public function Mycreate(){ $data = $this->request->post(); $url = $this->ts_base_url."api/dataApi/createTemplate";