Skip to content

Commit

Permalink
兼容Api标签描述用法
Browse files Browse the repository at this point in the history
  • Loading branch information
kiss291323003 committed Aug 12, 2020
1 parent 0c1f58c commit 5ee0cf4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Utility/AnnotationDoc.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,11 @@ function scan2Markdown(string $dirOrFile):array
//兼容api指定
if($method->getApiDescriptionTag()){
$description = $this->parseDescTagContent($method->getApiDescriptionTag());
}else{
}else if(!empty($apiTag->description)){
trigger_error('@Api tag description property is deprecated,use @ApiDescription tag instead',E_USER_DEPRECATED);
$description = $apiTag->description;
}else{
$description = '暂无描述';
}

$markdown .= "{$description}{$this->CLRF}";
Expand Down

0 comments on commit 5ee0cf4

Please sign in to comment.