From ae7e657d273e98c9755d25808340c2dc015a7202 Mon Sep 17 00:00:00 2001 From: liaofei <136327134@qq.com> Date: Wed, 26 Apr 2023 15:23:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=96=87=E4=BB=B6=E8=B7=AF?= =?UTF-8?q?=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crmeb/crmeb/command/Util.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crmeb/crmeb/command/Util.php b/crmeb/crmeb/command/Util.php index 6979ccd3f..c6d0ee78f 100644 --- a/crmeb/crmeb/command/Util.php +++ b/crmeb/crmeb/command/Util.php @@ -136,6 +136,9 @@ class Util extends Command $paramePath = implode('/', $paramePathMatche); } } + if ($path[0] === '/') { + $path = substr($path, 1); + } $route[] = [ 'method' => strtoupper($value['api']['method']), 'path' => $path . $paramePath,