From d0926408257c75966ddb4df9b30f2d77e60e07c8 Mon Sep 17 00:00:00 2001 From: tianya Date: Tue, 12 Apr 2022 21:58:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/admin/templets/index.htm | 2 +- src/system/archive/archives.class.php | 6 +----- src/system/helpers/channelunit.helper.php | 14 ++++++++------ 3 files changed, 10 insertions(+), 12 deletions(-) diff --git a/src/admin/templets/index.htm b/src/admin/templets/index.htm index a5b56df1..ed789808 100644 --- a/src/admin/templets/index.htm +++ b/src/admin/templets/index.htm @@ -85,7 +85,7 @@ 代码托管 - 帮助中心 + 帮助中心 diff --git a/src/system/archive/archives.class.php b/src/system/archive/archives.class.php index b60445f5..ed1fd416 100755 --- a/src/system/archive/archives.class.php +++ b/src/system/archive/archives.class.php @@ -288,11 +288,7 @@ class Archives */ function MakeHtml($isremote = 0) { - global $fileFirst, $cfg_basehost,$cfg_rewrite; - if ($cfg_rewrite == 'Y') { - return ''; - } - + global $fileFirst, $cfg_basehost; if ($this->IsError) { return ''; } diff --git a/src/system/helpers/channelunit.helper.php b/src/system/helpers/channelunit.helper.php index 522bbcbd..e7235024 100755 --- a/src/system/helpers/channelunit.helper.php +++ b/src/system/helpers/channelunit.helper.php @@ -148,13 +148,15 @@ if (!function_exists('GetFileName')) { //伪静态文档,Nginx伪静态规则参考: //rewrite ^/([0-9]+).html$ /apps/view.php?arcID=$1; //rewrite ^/([0-9]+)-([0-9]+).html$ /apps/view.php?aid=$1&pageno=$2; - if ($cfg_rewrite == 'Y') { - //目录版return "/article/".$aid.""; - //网页版 - return $GLOBALS['cfg_cmspath'].'/'.$aid.".html"; - } + if ($rank != 0 || $ismake == -1 || $typeid == 0 || $money > 0) { - return $GLOBALS['cfg_phpurl']."/view.php?aid=$aid"; + if ($cfg_rewrite == 'Y') { + //目录版return "/article/".$aid.""; + //网页版 + return $GLOBALS['cfg_cmspath'].'/'.$aid.".html"; + } else { + return $GLOBALS['cfg_phpurl']."/view.php?aid=$aid"; + } } else { $articleDir = MfTypedir($typedir); $articleRule = strtolower($namerule);