Ver código fonte

修改文件路径

liaofei 2 anos atrás
pai
commit
ae7e657d27
1 arquivos alterados com 3 adições e 0 exclusões
  1. 3 0
      crmeb/crmeb/command/Util.php

+ 3 - 0
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,