From 2687007f98e45096ed7eb84f0ab1c277243cc202 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=99=E8=BF=B0=E3=80=81=E5=88=AB=E7=A6=BB?= Date: Mon, 13 Jan 2025 10:30:22 +0800 Subject: [PATCH] Update inc_archives_functions.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复自动功能,由系统设置控制开关 --- src/admin/inc/inc_archives_functions.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/admin/inc/inc_archives_functions.php b/src/admin/inc/inc_archives_functions.php index 49f465ea..35ea46c0 100644 --- a/src/admin/inc/inc_archives_functions.php +++ b/src/admin/inc/inc_archives_functions.php @@ -508,8 +508,8 @@ function PrintAutoFieldsEdit(&$fieldset, &$fieldValues, $loadtype = 'all') */ function AnalyseHtmlBody($body, &$description, &$litpic, &$keywords, $dtype = '') { - global $autolitpic, $remote, $dellink, $autokey, $cfg_basehost, $cfg_auot_description, $id, $title, $cfg_soft_lang, $cfg_bizcore_appid, $cfg_bizcore_key, $cfg_bizcore_hostname, $cfg_bizcore_port; - $autolitpic = (empty($autolitpic) ? '' : $autolitpic); + global $cfg_arc_autopic, $remote, $dellink, $cfg_arc_autokeyword, $cfg_basehost, $cfg_auot_description, $id, $title, $cfg_soft_lang, $cfg_bizcore_appid, $cfg_bizcore_key, $cfg_bizcore_hostname, $cfg_bizcore_port; + $cfg_arc_autopic = (empty($cfg_arc_autopic) ? '' : $cfg_arc_autopic); $body = stripslashes($body); //远程图片本地化 if ($remote == 1) { @@ -531,11 +531,11 @@ function AnalyseHtmlBody($body, &$description, &$litpic, &$keywords, $dtype = '' $description = addslashes($description); } //自动获取缩略图 - if ($autolitpic == 1 && $litpic == '') { + if ($cfg_arc_autopic == Y) { $litpic = GetDDImgFromBody($body); } //自动获取关键词 - if ($autokey == 1 && $keywords == '') { + if ($cfg_arc_autokeyword == Y) { $subject = $title; $message = $body; //采用DedeBIZ Core分词组件分词