..
This commit is contained in:
@@ -14,10 +14,11 @@ return [
|
||||
'http' => [
|
||||
Hyperf\HttpServer\Exception\Handler\HttpExceptionHandler::class,
|
||||
App\Exception\Handler\AppExceptionHandler::class,
|
||||
// Aether\Exception\Handler\AppExceptionHandler::class,
|
||||
],
|
||||
'jsonrpc-http' => [
|
||||
Aether\Exception\AppExceptionHandler::class,
|
||||
//Aether\Exception\AppExceptionHandler::class,
|
||||
Hyperf\HttpServer\Exception\Handler\HttpExceptionHandler::class,
|
||||
App\Exception\Handler\AppExceptionHandler::class,
|
||||
],
|
||||
],
|
||||
];
|
||||
|
||||
@@ -5,7 +5,7 @@ declare(strict_types=1);
|
||||
use Hyperf\Framework\Bootstrap\PipeMessageCallback;
|
||||
use Hyperf\Framework\Bootstrap\WorkerExitCallback;
|
||||
use Hyperf\Framework\Bootstrap\WorkerStartCallback;
|
||||
use Hyperf\JsonRpc\HttpServer;
|
||||
use Hyperf\JsonRpc\HttpServer as JsonRpcHttpServer;
|
||||
use Hyperf\Server\Event;
|
||||
use Hyperf\Server\Server;
|
||||
use Swoole\Constant;
|
||||
@@ -36,10 +36,10 @@ return [
|
||||
'port' => (int) env('JSON_RPC_PORT', 9620),
|
||||
'sock_type' => SWOOLE_SOCK_TCP,
|
||||
'callbacks' => [
|
||||
Event::ON_REQUEST => [HttpServer::class, 'onRequest'],
|
||||
Event::ON_REQUEST => [JsonRpcHttpServer::class, 'onRequest'],
|
||||
],
|
||||
'settings' => [
|
||||
'open_eof_split' => true,
|
||||
// 'open_eof_split' => true,
|
||||
'package_eof' => "\r\n",
|
||||
'package_max_length' => 1024 * 1024 * 2,
|
||||
],
|
||||
|
||||
@@ -30,8 +30,8 @@ return [
|
||||
'name' => 'DataCampus',
|
||||
'host' => env('NACOS_HOST', '192.168.28.199'),
|
||||
'port' => env('NACOS_PORT', 8848),
|
||||
'username' => env('NACOS_USERNAME', 'nacos'),
|
||||
'password' => env('NACOS_PASSWORD', 'nacos'),
|
||||
// 'username' => env('NACOS_USERNAME', 'nacos'),
|
||||
// 'password' => env('NACOS_PASSWORD', 'nacos'),
|
||||
'namespace' => env('NACOS_NAMESPACE', 'e42b853c-5195-478b-b5e3-6d49f6a45053'),
|
||||
'group_name' => env('NACOS_GROUP', 'DEFAULT_GROUP'),
|
||||
'service_name' => 'DataCampus',
|
||||
@@ -46,8 +46,8 @@ return [
|
||||
'name' => 'DataTeacher',
|
||||
'host' => env('NACOS_HOST', '192.168.28.199'),
|
||||
'port' => env('NACOS_PORT', 8848),
|
||||
'username' => env('NACOS_USERNAME', 'nacos'),
|
||||
'password' => env('NACOS_PASSWORD', 'nacos'),
|
||||
// 'username' => env('NACOS_USERNAME', 'nacos'),
|
||||
// 'password' => env('NACOS_PASSWORD', 'nacos'),
|
||||
'namespace' => env('NACOS_NAMESPACE', 'e42b853c-5195-478b-b5e3-6d49f6a45053'),
|
||||
'group_name' => env('NACOS_GROUP', 'DEFAULT_GROUP'),
|
||||
'service_name' => 'DataTeacher',
|
||||
|
||||
Reference in New Issue
Block a user