From ab57e6b54935478bb26847a99651ab7c8d46acb0 Mon Sep 17 00:00:00 2001 From: chengxl Date: Tue, 11 Nov 2025 11:10:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BF=85=E5=A1=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/controller/Production.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/application/api/controller/Production.php b/application/api/controller/Production.php index 560f41b..da859d9 100644 --- a/application/api/controller/Production.php +++ b/application/api/controller/Production.php @@ -672,7 +672,9 @@ class Production extends Base if (!$rule->check($data)) { return jsonError($rule->getError()); } - $updata['abstract'] = trim($data['abstract']); + if(isset($data['abstract'])){ + $updata['abstract'] = trim($data['abstract']); + } $updata['doi'] = $data['doi']; $updata['pub_date'] = $data['pub_date']; $this->production_article_obj->where('p_article_id', $data['p_article_id'])->update($updata); @@ -1476,8 +1478,8 @@ class Production extends Base $typesetInfo['images'] = null; $typesetInfo['tables'] = null; -// $url = $this->ts_base_url."api/typeset/createDocx"; - $url = "http://192.168.110.110:8081/typeset/createDocx"; + $url = $this->ts_base_url."api/typeset/createDocx"; +// $url = "http://192.168.110.110:8081/typeset/createDocx"; // $url = "http://192.168.110.110:8081/typeset/testqt"; $res = object_to_array(json_decode(myPost1($url, $typesetInfo)));