Skip to content

Commit

Permalink
fix console log bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kiss291323003 committed Mar 8, 2019
1 parent 8cfeb7f commit 58be92e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions src/Console/Module/Auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public function help(Caller $caller, Response $response)
$response->setMessage($help);
}

protected function isAuth(int $fd):bool
private function isAuth(int $fd):bool
{
$info = self::$authTable->get(self::$user);
if($info){
Expand All @@ -92,13 +92,16 @@ protected function isAuth(int $fd):bool
}
}

public static function currentFd()
public static function currentFd():?int
{
if(!self::$authTable){
return null;
}
$info = self::$authTable->get(self::$user);
if($info){
return $info['fd'];
}else{
return false;
return null;
}
}
}
2 changes: 1 addition & 1 deletion src/SysConst.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

class SysConst
{
const EASYSWOOLE_VERSION = '3.1.17-dev';
const EASYSWOOLE_VERSION = '3.1.17';
const LOGGER_HANDLER = 'LOGGER_HANDLER';
const ERROR_HANDLER = 'ERROR_HANDLER';
const TRIGGER_HANDLER = 'TRIGGER_HANDLER';
Expand Down

0 comments on commit 58be92e

Please sign in to comment.