From 9849282f4bb123c8c847ce0bf28c0a9f601c7b74 Mon Sep 17 00:00:00 2001 From: wangjinlei <751475802@qq.com> Date: Wed, 7 Jan 2026 11:05:06 +0800 Subject: [PATCH] latex update --- application/api/controller/Production.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/application/api/controller/Production.php b/application/api/controller/Production.php index d7703c4..e7b482d 100644 --- a/application/api/controller/Production.php +++ b/application/api/controller/Production.php @@ -528,6 +528,7 @@ class Production extends Base $update['keywords'] = trim($data['keywords']); $update['abbreviation'] = isset($data['abbreviation']) ? trim($data['abbreviation']) : ''; $update['acknowledgment'] = trim($data['acknowledgment']); + $update['executive_editor'] = isset($data['executive_editor']) ? trim($data['executive_editor']) : ''; $update['abbr'] = trim($data['abbr']); // $update['pub_date'] = trim($data['pub_date']); $update['npp'] = isset($data['npp']) ? $data['npp'] : ''; @@ -2219,6 +2220,24 @@ class Production extends Base + public function mytestconver(){ + $data = $this->request->post(); + $rule = new Validate([ + "id"=>"require" + ]); + if(!$rule->check($data)){ + return jsonError($rule->getError()); + } + $info = $this->article_main_obj->where("am_id",$data['id'])->find(); + $production_info = $this->production_article_obj->where("article_id",$info['article_id'])->find(); + $refers = $this->production_article_refer_obj->where("p_article_id",$production_info['p_article_id'])->where('state',0)->order("index")->select(); + $res = $this->convertToLatex($info['content'],$refers); + + return jsonSuccess([$res]); + } + + + public function convertToLatex($content,$references) { // 空内容直接返回