mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-05 22:52:49 +08:00
取消驱动配置的namespace参数
This commit is contained in:
@@ -77,7 +77,7 @@ class Response
|
||||
$type = empty($type) ? 'null' : strtolower($type);
|
||||
|
||||
if (!isset(self::$instance[$type])) {
|
||||
$class = (isset($options['namespace']) ? $options['namespace'] : '\\think\\response\\') . ucfirst($type);
|
||||
$class = strpos($type, '\\') ? $type : '\\think\\response\\' . ucfirst($type);
|
||||
if (class_exists($class)) {
|
||||
$response = new $class($data, $type, $options);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user