mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-08 11:02:48 +08:00
当给success传入URl对象时,不在进行url计算.
This commit is contained in:
@@ -13,6 +13,7 @@ declare (strict_types = 1);
|
|||||||
namespace app;
|
namespace app;
|
||||||
|
|
||||||
use think\App;
|
use think\App;
|
||||||
|
use think\app\Url;
|
||||||
use think\exception\ValidateException;
|
use think\exception\ValidateException;
|
||||||
use think\Validate;
|
use think\Validate;
|
||||||
use think\facade\View;
|
use think\facade\View;
|
||||||
@@ -108,7 +109,13 @@ abstract class BaseController
|
|||||||
if(is_null($jump_to_url)){
|
if(is_null($jump_to_url)){
|
||||||
$jump_to_url = \request()->server('HTTP_REFERER');
|
$jump_to_url = \request()->server('HTTP_REFERER');
|
||||||
}else{
|
}else{
|
||||||
$jump_to_url = url($jump_to_url);
|
if($jump_to_url instanceof Url){
|
||||||
|
|
||||||
|
$jump_to_url = $jump_to_url;
|
||||||
|
}else{
|
||||||
|
$jump_to_url = url($jump_to_url);
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$data = [
|
$data = [
|
||||||
@@ -131,7 +138,13 @@ abstract class BaseController
|
|||||||
if(is_null($jump_to_url)){
|
if(is_null($jump_to_url)){
|
||||||
$jump_to_url = \request()->server('HTTP_REFERER');
|
$jump_to_url = \request()->server('HTTP_REFERER');
|
||||||
}else{
|
}else{
|
||||||
$jump_to_url = url($jump_to_url);
|
if($jump_to_url instanceof Url){
|
||||||
|
|
||||||
|
$jump_to_url = $jump_to_url;
|
||||||
|
}else{
|
||||||
|
$jump_to_url = url($jump_to_url);
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$data = [
|
$data = [
|
||||||
|
|||||||
Reference in New Issue
Block a user