mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 20:52:48 +08:00
改进Url生成
This commit is contained in:
@@ -67,7 +67,11 @@ class Redirect extends Response
|
||||
*/
|
||||
public function getTargetUrl()
|
||||
{
|
||||
return strpos($this->data, '://') ? $this->data : Url::build($this->data, $this->params);
|
||||
if (strpos($this->data, '://') || (strpos($this->data, '/') && empty($this->params))) {
|
||||
return $this->data;
|
||||
} else {
|
||||
return Url::build($this->data, $this->params);
|
||||
}
|
||||
}
|
||||
|
||||
public function params($params = [])
|
||||
|
||||
Reference in New Issue
Block a user