From bf8b4ecf74363921d410f8359fe1c3b277f32129 Mon Sep 17 00:00:00 2001 From: chengxl Date: Wed, 3 Dec 2025 17:01:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/controller/References.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/application/api/controller/References.php b/application/api/controller/References.php index 71038535..9124533d 100644 --- a/application/api/controller/References.php +++ b/application/api/controller/References.php @@ -188,6 +188,7 @@ class References extends Base if(!is_string($sContent)){ return json_encode(['status' => 2,'msg' => 'The content format is incorrect']); } + $sContent = str_replace(['?','?'], '.', $sContent); $aContent = explode('.', $sContent); $aUpdate = []; if(count($aContent) > 1){ @@ -218,6 +219,7 @@ class References extends Base $doiPattern = '/10\.\d{4,9}\/[^\s\/?#&=]+/i'; if (preg_match($doiPattern, $sDoi, $matches)) { $aUpdate['doi'] = $matches[0]; + $aUpdate['doilink'] = 'https://doi.org/'.''.$aUpdate['doi']; }else{ $aUpdate['doi'] = $sDoi; }