mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 23:02:48 +08:00
改进App类控制器没有返回值返回204状态码
This commit is contained in:
@@ -175,7 +175,7 @@ class App
|
|||||||
$type = $isAjax ? Config::get('default_ajax_return') : Config::get('default_return_type');
|
$type = $isAjax ? Config::get('default_ajax_return') : Config::get('default_return_type');
|
||||||
$response = Response::create($data, $type);
|
$response = Response::create($data, $type);
|
||||||
} else {
|
} else {
|
||||||
$response = Response::create();
|
$response = Response::create('', 204);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 监听app_end
|
// 监听app_end
|
||||||
|
|||||||
Reference in New Issue
Block a user