From c084b4b03cea43c203d747ee7c12b325ff9b2b3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Fri, 29 Oct 2021 17:19:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kiri-gii/GiiJsonRpc.php | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/kiri-gii/GiiJsonRpc.php b/kiri-gii/GiiJsonRpc.php index de7418fc..6e5d5466 100644 --- a/kiri-gii/GiiJsonRpc.php +++ b/kiri-gii/GiiJsonRpc.php @@ -30,8 +30,7 @@ interface ' . ucfirst($name) . 'RpcInterface { -} - '; +}'; $name = ucfirst($name) . 'RpcInterface.php'; @@ -68,9 +67,7 @@ class ' . ucfirst($name) . 'RpcService extends JsonRpcConsumers implements ' . u -} - - '; +}'; $name = ucfirst($name) . 'RpcService.php'; if (!is_dir(APP_PATH . '/rpc/Producers/')) { @@ -96,15 +93,13 @@ use Rpc\\' . ucfirst($name) . 'RpcInterface; #[Target] -#[JsonRpc(method: \'' . $name . '\', version: \'2.0\')] +#[JsonRpc(service: \'' . $name . '\', version: \'2.0\')] class ' . ucfirst($name) . 'RpcConsumer extends Controller implements ' . ucfirst($name) . 'RpcInterface { -} - - '; +}'; $name = ucfirst($name) . 'RpcConsumer.php'; if (!is_dir(APP_PATH . '/rpc/Consumers/')) {