mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-08 19:12:48 +08:00
优化basecontroller
This commit is contained in:
@@ -161,9 +161,11 @@ 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 {
|
||||||
$jump_to_url = url($jump_to_url);
|
if (strpos($jump_to_url, 'http') !== 0) {
|
||||||
|
$jump_to_url = url($jump_to_url);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user