Parcourir la source

修改文件路径

liaofei il y a 2 ans
Parent
commit
ae7e657d27
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  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,