优化basecontroller

This commit is contained in:
augushong
2020-12-06 22:33:59 +08:00
parent 704337eb20
commit 6da3e65f93

View File

@@ -161,11 +161,13 @@ abstract class BaseController
} else { } else {
if ($jump_to_url instanceof Url) { if ($jump_to_url instanceof Url) {
$jump_to_url = $jump_to_url; $jump_to_url = (string)$jump_to_url;
} else { } else {
if (strpos($jump_to_url, 'http') !== 0) {
$jump_to_url = url($jump_to_url); $jump_to_url = url($jump_to_url);
} }
} }
}
return (string)$jump_to_url; return (string)$jump_to_url;
} }