升级thinkphp到5.1.39
This commit is contained in:
1 parent
c8839fa4f8
commit
a58d04e7e2
37 files changed
+546
-192
No files matched your search
@@ -11,9 +11,9 @@
|
||||
|
||||
namespace think\route;
|
||||
|
||||
use think\App;
|
||||
use think\Container;
|
||||
use think\exception\ValidateException;
|
||||
use think\App;
|
||||
use think\Request;
|
||||
use think\Response;
|
||||
|
||||
@@ -181,9 +181,10 @@ abstract class Dispatch
|
||||
|
||||
$response = Response::create($data, $type);
|
||||
} else {
|
||||
$data = ob_get_clean();
|
||||
$content = false === $data ? '' : $data;
|
||||
$status = '' === $content && $this->request->isAjax() ? 204 : 200;
|
||||
$data = ob_get_clean();
|
||||
$content = false === $data ? '' : $data;
|
||||
$status = '' === $content && $this->request->isJson() ? 204 : 200;
|
||||
|
||||
$response = Response::create($content, '', $status);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user