改名
This commit is contained in:
@@ -64,16 +64,16 @@ class Context extends BaseContext
|
|||||||
if (!static::hasContext($id)) {
|
if (!static::hasContext($id)) {
|
||||||
Coroutine::getContext()[$id] = [];
|
Coroutine::getContext()[$id] = [];
|
||||||
}
|
}
|
||||||
if (empty($key)) {
|
if (!empty($key)) {
|
||||||
return Coroutine::getContext()[$id] = $context;
|
if (!is_array(Coroutine::getContext()[$id])) {
|
||||||
}
|
Coroutine::getContext()[$id] = [$key => $context];
|
||||||
$oldData = Coroutine::getContext()[$id];
|
} else {
|
||||||
if (!is_array($oldData)) {
|
Coroutine::getContext()[$id][$key] = $context;
|
||||||
$oldData = [$key => $context];
|
}
|
||||||
} else {
|
} else {
|
||||||
$oldData[$key] = $context;
|
Coroutine::getContext()[$id] = $context;
|
||||||
}
|
}
|
||||||
return Coroutine::getContext()[$id] = $oldData;
|
return $context;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -403,7 +403,6 @@ class Request extends Application
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param $router
|
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function isNotFound()
|
public function isNotFound()
|
||||||
|
|||||||
Reference in New Issue
Block a user