mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-01 15:32:48 +08:00
优化basecontroller
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user