!215 修复生成API文档相同分组方法名相同被覆盖问题

Merge pull request !215 from HID丨emotion/fix_api_same_method
pull/215/MERGE
Karson 2020-08-12 20:48:09 +08:00 committed by Gitee
commit 541a182a7e
1 changed files with 1 additions and 1 deletions

View File

@ -190,7 +190,7 @@ class Builder
if ($subdomain) { if ($subdomain) {
$route = substr($route, 4); $route = substr($route, 4);
} }
$docslist[$section][$name] = [ $docslist[$section][$class . $name] = [
'id' => $counter, 'id' => $counter,
'method' => is_array($docs['ApiMethod'][0]) ? $docs['ApiMethod'][0]['data'] : $docs['ApiMethod'][0], 'method' => is_array($docs['ApiMethod'][0]) ? $docs['ApiMethod'][0]['data'] : $docs['ApiMethod'][0],
'method_label' => $this->generateBadgeForMethod($docs), 'method_label' => $this->generateBadgeForMethod($docs),