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; }