2019-01-23 08:33:19 +00:00
|
|
|
<?php
|
|
|
|
return [
|
|
|
|
/**
|
|
|
|
* app name
|
|
|
|
*/
|
|
|
|
'app' => env('APP_NAME'),
|
|
|
|
|
2019-01-23 08:45:16 +00:00
|
|
|
//rpc日志路径
|
|
|
|
'log_path' => storage_path('logs/rpc.log'),
|
|
|
|
//rpc日志格式
|
|
|
|
'log_formatter' => JsonRpc\Logging\LogstashFormatter::class,
|
2019-01-23 08:33:19 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* json rpc server 配置
|
|
|
|
*/
|
|
|
|
'server' => [
|
|
|
|
'name' => env('APP_NAME'),
|
|
|
|
'map' => base_path('app/Rpc/method.php'), //rpc注册文件
|
|
|
|
],
|
|
|
|
/**
|
|
|
|
* json rpc client 配置
|
|
|
|
*/
|
|
|
|
'client' => [
|
|
|
|
'auth' => [
|
|
|
|
'local' => true,
|
|
|
|
'base_uri' => env('RPC_AUTH_URI','http://auth.dev.haowumc.com'),
|
|
|
|
],
|
|
|
|
'erp' => [
|
|
|
|
'local' => true,
|
|
|
|
'base_uri' => env('RPC_ERP_URI','http://erp.dev.haowumc.com'),
|
|
|
|
],
|
|
|
|
'crm' => [
|
|
|
|
'local' => true,
|
|
|
|
'base_uri' => env('RPC_CRM_URI','http://crm.dev.haowumc.com'),
|
|
|
|
],
|
|
|
|
'api' => [
|
|
|
|
'local' => true,
|
2019-01-24 06:11:50 +00:00
|
|
|
'base_uri' => env('RPC_API_URI','http://sapi.dev.haowumc.com'),
|
2019-01-23 08:33:19 +00:00
|
|
|
],
|
|
|
|
'op' => [
|
|
|
|
'local' => true,
|
|
|
|
'base_uri' => env('RPC_OP_URI','http://op.dev.haowumc.com'),
|
|
|
|
],
|
2019-01-24 03:59:46 +00:00
|
|
|
'payment' => [
|
|
|
|
'local' => true,
|
|
|
|
'base_uri' => env('RPC_PAYMENT_URI','http://payapi.dev.haowumc.com'),
|
|
|
|
],
|
2019-03-18 10:10:53 +00:00
|
|
|
'wx-server' => [
|
|
|
|
'local' => true,
|
2019-03-18 10:11:54 +00:00
|
|
|
'base_uri' => env('RPC_WX_SERVER_URI', 'http://sapi.in.haowumc.com'),
|
2019-03-18 10:10:53 +00:00
|
|
|
],
|
2019-01-23 08:33:19 +00:00
|
|
|
],
|
|
|
|
];
|