Explorar o código

修改文件路径

liaofei %!s(int64=2) %!d(string=hai) anos
pai
achega
ae7e657d27
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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,