Skip to content

Commit c9ba01c

Browse files
authored
Merge pull request #80 from xiaohe4966/develop
修改生成api接口路径问题
2 parents 17931de + d07af8d commit c9ba01c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

application/admin/command/Api/library/Builder.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ public function parse()
204204
if ($subdomain) {
205205
$route = substr($route, 4);
206206
}
207+
$route = str_replace('.', '/', $route);
207208
$docsList[$section][$name] = [
208209
'id' => $counter,
209210
'method' => is_array($docs['ApiMethod'][0]) ? $docs['ApiMethod'][0]['data'] : $docs['ApiMethod'][0],

0 commit comments

Comments
 (0)