mirror of
https://github.com/crmeb/CRMEB.git
synced 2025-12-10 17:42:50 +00:00
调整不是Url的实例判断
This commit is contained in:
parent
a95adf9bcb
commit
c48bdfa66a
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user