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