From 6da3e65f933a34b49b2d490b78402deb3b843fea Mon Sep 17 00:00:00 2001 From: augushong Date: Sun, 6 Dec 2020 22:33:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96basecontroller?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/BaseController.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/BaseController.php b/app/BaseController.php index 72e1aeb..8451177 100644 --- a/app/BaseController.php +++ b/app/BaseController.php @@ -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); + } } }