改名
This commit is contained in:
@@ -57,11 +57,12 @@ class Producer extends Component
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $name
|
* @param string $name
|
||||||
* @throws Exception
|
* @return bool
|
||||||
*/
|
* @throws Exception
|
||||||
public function exists(string $name)
|
*/
|
||||||
|
public function exists(string $name): bool
|
||||||
{
|
{
|
||||||
$redis = Snowflake::app()->getRedis();
|
$redis = Snowflake::app()->getRedis();
|
||||||
if ($redis->exists('crontab:' . md5($name))) {
|
if ($redis->exists('crontab:' . md5($name))) {
|
||||||
|
|||||||
@@ -96,10 +96,7 @@ class Logger extends Component
|
|||||||
$message = $this->arrayFormat($message);
|
$message = $this->arrayFormat($message);
|
||||||
}
|
}
|
||||||
if (!empty($message)) {
|
if (!empty($message)) {
|
||||||
if (!is_array($this->logs)) {
|
$this->write($message, $method);
|
||||||
$this->logs = [];
|
|
||||||
}
|
|
||||||
$this->logs[] = [$method, $message];
|
|
||||||
}
|
}
|
||||||
return $message;
|
return $message;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user