From cc964a64cd6bb44b3eebdfb1d5185cf2d528477f 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?= <2449271624@qq.com> Date: Thu, 12 Oct 2023 16:25:14 +0800 Subject: [PATCH] Update channelunit.helper.php --- src/system/helpers/channelunit.helper.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/system/helpers/channelunit.helper.php b/src/system/helpers/channelunit.helper.php index 10d27ab6..ebef1964 100755 --- a/src/system/helpers/channelunit.helper.php +++ b/src/system/helpers/channelunit.helper.php @@ -339,7 +339,7 @@ function GetSonIds($id, $channel = 0, $addthis = true) } GetSonIdsLogic($id, $cfg_Cs, $channel, $addthis); $rquery = join(',', $GLOBALS['idArray']); - $rquery = preg_replace("/,$/", '', $rquery); + $rquery = preg_replace("/,$/", "", $rquery); return $rquery; } //递归逻辑 @@ -365,7 +365,7 @@ function GetSonIdsLogic($id, $sArr, $channel = 0, $addthis = false) function MfTypedir($typedir) { if (preg_match("/^(http|https|ftp):/i", $typedir)) return $typedir; - $typedir = str_replace("{cmspath}", $typedir); + $typedir = str_replace("{cmspath}", "/", $typedir); $typedir = preg_replace("/\/{1,}/", "/", $typedir); return $typedir; }