From c48bdfa66a4e9ad4af5f4a4626388c20ea58272d Mon Sep 17 00:00:00 2001 From: liaofei <136327134@qq.com> Date: Wed, 20 Nov 2019 16:33:40 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E4=B8=8D=E6=98=AFUrl?= =?UTF-8?q?=E7=9A=84=E5=AE=9E=E4=BE=8B=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crmeb/crmeb/utils/Template.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crmeb/crmeb/utils/Template.php b/crmeb/crmeb/utils/Template.php index 63316474..2480a3bc 100644 --- a/crmeb/crmeb/utils/Template.php +++ b/crmeb/crmeb/utils/Template.php @@ -116,9 +116,11 @@ class Template * @param string $suffix * @return string */ - public function postpositionUrl(Url $url, string $suffix = '') + public function postpositionUrl($url, string $suffix = '') { - return $url->suffix($suffix)->domain(true)->build(); + if($url instanceof Url) + $url = $url->suffix($suffix)->domain(true)->build(); + return $url; } /**