Browse Source

Update inc_archives_functions.php

修复自动功能,由系统设置控制开关
develop
叙述、别离 1 month ago
parent
commit
2687007f98
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      src/admin/inc/inc_archives_functions.php

+ 4
- 4
src/admin/inc/inc_archives_functions.php View File

@@ -508,8 +508,8 @@ function PrintAutoFieldsEdit(&$fieldset, &$fieldValues, $loadtype = 'all')
*/ */
function AnalyseHtmlBody($body, &$description, &$litpic, &$keywords, $dtype = '') 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); $body = stripslashes($body);
//远程图片本地化 //远程图片本地化
if ($remote == 1) { if ($remote == 1) {
@@ -531,11 +531,11 @@ function AnalyseHtmlBody($body, &$description, &$litpic, &$keywords, $dtype = ''
$description = addslashes($description); $description = addslashes($description);
} }
//自动获取缩略图 //自动获取缩略图
if ($autolitpic == 1 && $litpic == '') {
if ($cfg_arc_autopic == Y) {
$litpic = GetDDImgFromBody($body); $litpic = GetDDImgFromBody($body);
} }
//自动获取关键词 //自动获取关键词
if ($autokey == 1 && $keywords == '') {
if ($cfg_arc_autokeyword == Y) {
$subject = $title; $subject = $title;
$message = $body; $message = $body;
//采用DedeBIZ Core分词组件分词 //采用DedeBIZ Core分词组件分词


Loading…
Cancel
Save