diff --git a/config/rpc.php b/config/rpc.php index 5b859c1..906f90a 100644 --- a/config/rpc.php +++ b/config/rpc.php @@ -35,7 +35,7 @@ return [ ], 'api' => [ 'local' => true, - 'base_uri' => env('RPC_API_URI','http://api.dev.haowumc.com'), + 'base_uri' => env('RPC_API_URI','http://sapi.dev.haowumc.com'), ], 'op' => [ 'local' => true, diff --git a/src/Providers/BaseServiceProvider.php b/src/Providers/BaseServiceProvider.php index f662a43..7a459bd 100644 --- a/src/Providers/BaseServiceProvider.php +++ b/src/Providers/BaseServiceProvider.php @@ -30,7 +30,7 @@ class BaseServiceProvider extends ServiceProvider $this->setupConfig(); $this->app->singleton("rpc.logger", function () { $config = config('rpc'); - $stream = new StreamHandler($this->app->storagePath() . $config['log_path']); + $stream = new StreamHandler($config['log_path']); $stream->setFormatter(new $config['log_formatter']()); $logger = new Logger('RPC.LOGGER'); return $logger->pushHandler($stream);