当给success传入URl对象时,不在进行url计算.

This commit is contained in:
augushong
2020-03-20 15:30:42 +08:00
parent 6c0acfd470
commit 8a525f9f36

View File

@@ -13,6 +13,7 @@ declare (strict_types = 1);
namespace app;
use think\App;
use think\app\Url;
use think\exception\ValidateException;
use think\Validate;
use think\facade\View;
@@ -108,7 +109,13 @@ abstract class BaseController
if(is_null($jump_to_url)){
$jump_to_url = \request()->server('HTTP_REFERER');
}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 = [
@@ -131,7 +138,13 @@ abstract class BaseController
if(is_null($jump_to_url)){
$jump_to_url = \request()->server('HTTP_REFERER');
}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 = [