mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-08-30 12:45:32 +08:00
助手函数改进 App类改进
This commit is contained in:
@@ -428,6 +428,5 @@ function xml($data = [], $code = 200, $options = [])
|
||||
*/
|
||||
function redirect($url = [], $code = 200, $params = [])
|
||||
{
|
||||
$response = Response::create($url, 'redirect')->code($code)->params($params);
|
||||
throw new HttpResponseException($response);
|
||||
return Response::create($url, 'redirect')->code($code)->params($params);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user