优化basecontroller

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

View File

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