From 3777e7fcf49ccb903176c6fdbc2974027684c810 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?= <93301500+xushubieli@users.noreply.github.com> Date: Fri, 2 Jun 2023 18:10:45 +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 8ca75e73..588f1073 100755 --- a/src/system/helpers/channelunit.helper.php +++ b/src/system/helpers/channelunit.helper.php @@ -228,8 +228,8 @@ if (!function_exists('GetFileName')) { } $articleRule = str_replace($arr_rpsource, $arr_rpvalues, $articleRule); if (preg_match("/\{p/", $articleRule)) { - $articleRule = str_replace('{pinyin}', GetPinyin($title).'_'.$aid, $articleRule); - $articleRule = str_replace('{py}', GetPinyin($title, 1).'_'.$aid, $articleRule); + $articleRule = str_replace('{pinyin}', GetPinyin($title).'-'.$aid, $articleRule); + $articleRule = str_replace('{py}', GetPinyin($title, 1).'-'.$aid, $articleRule); } $articleUrl = '/'.preg_replace("/^\//", '', $articleRule); if (preg_match("/index\.html/", $articleUrl) && $cfg_arc_dirname == 'Y') {