优化
This commit is contained in:
@@ -5,13 +5,13 @@ declare(strict_types=1);
|
||||
namespace Aether;
|
||||
|
||||
use Hyperf\Context\ApplicationContext;
|
||||
use Hyperf\Context\Context;
|
||||
use Hyperf\ExceptionHandler\ExceptionHandler;
|
||||
use Hyperf\Rpc\Protocol;
|
||||
use Psr\Container\ContainerExceptionInterface;
|
||||
use Psr\Container\NotFoundExceptionInterface;
|
||||
use Psr\Http\Message\ResponseInterface;
|
||||
use Throwable;
|
||||
use Hyperf\Context\Context;
|
||||
|
||||
class RpcExceptionHandler extends ExceptionHandler
|
||||
{
|
||||
@@ -29,7 +29,6 @@ class RpcExceptionHandler extends ExceptionHandler
|
||||
];
|
||||
|
||||
$protocol = ApplicationContext::getContainer()->get(Protocol::class);
|
||||
// $response->getBody()->write($protocol->pack($data));
|
||||
$response->getBody()->write($protocol->pack($data));
|
||||
|
||||
return $response;
|
||||
@@ -39,4 +38,4 @@ class RpcExceptionHandler extends ExceptionHandler
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user