modify plugin name
This commit is contained in:
@@ -5,7 +5,7 @@ namespace Kiri;
|
|||||||
|
|
||||||
use Kiri\Abstracts\BaseContext;
|
use Kiri\Abstracts\BaseContext;
|
||||||
use Swoole\Coroutine;
|
use Swoole\Coroutine;
|
||||||
use Kiri;
|
|
||||||
/**
|
/**
|
||||||
* Class Context
|
* Class Context
|
||||||
* @package Yoc\http
|
* @package Yoc\http
|
||||||
@@ -167,7 +167,7 @@ class Context extends BaseContext
|
|||||||
}
|
}
|
||||||
$value = static::$_contents[$id];
|
$value = static::$_contents[$id];
|
||||||
if (!empty($key) && is_array($value)) {
|
if (!empty($key) && is_array($value)) {
|
||||||
return isset($value[$key]);
|
return isset($value[$key]) && $value[$key] !== null;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -189,7 +189,7 @@ class Context extends BaseContext
|
|||||||
}
|
}
|
||||||
$value = Coroutine::getContext($coroutineId)[$id];
|
$value = Coroutine::getContext($coroutineId)[$id];
|
||||||
if ($key !== null && is_array($value)) {
|
if ($key !== null && is_array($value)) {
|
||||||
return isset($value[$key]);
|
return isset($value[$key]) && $value[$key] !== null;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user