From 481aa2b9a7fc87bb56eb98780c5df9ec0bc81721 Mon Sep 17 00:00:00 2001 From: dongwei <838456736@qq.com> Date: Tue, 19 Feb 2019 15:33:03 +0800 Subject: [PATCH] fix bug --- src/Server/JsonRpcTool.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Server/JsonRpcTool.php b/src/Server/JsonRpcTool.php index a195c04..8a7602b 100644 --- a/src/Server/JsonRpcTool.php +++ b/src/Server/JsonRpcTool.php @@ -68,6 +68,7 @@ class JsonRpcTool $view->share('data',json_encode($data)); $view->share('endpoint', $this->getEndpoint()); $view->share('methods', $methods); + $view->share('method', $method); $view->share('params', json_encode($params, JSON_PRETTY_PRINT)); foreach ($methods as $name => $class) {