Skip to content

Commit

Permalink
Merge pull request #345 from chinagoldline/master
Browse files Browse the repository at this point in the history
fix #344
  • Loading branch information
shalousun authored Sep 13, 2022
2 parents f2bdfc4 + d9c6f74 commit 166027d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/power/doc/utils/TornaUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public static List<HttpParam> buildHerder(List<ApiReqParam> apiReqParams) {
httpParam.setName(header.getName());
httpParam.setRequired(header.isRequired() ? TornaConstants.YES : TornaConstants.NO);
httpParam.setExample(StringUtil.removeQuotes(header.getValue()));
if (StringUtil.isNotEmpty(header.getSince())&&"-".equals(header.getSince())) {
if (StringUtil.isNotEmpty(header.getSince())&&!"-".equals(header.getSince())) {
httpParam.setDescription(header.getDesc()+"@since "+header.getSince());
} else {
httpParam.setDescription(header.getDesc());
Expand Down Expand Up @@ -198,7 +198,7 @@ public static List<HttpParam> buildParams(List<ApiParam> apiParams) {
httpParam.setType(type);
httpParam.setRequired(apiParam.isRequired() ? TornaConstants.YES : TornaConstants.NO);
httpParam.setExample(StringUtil.removeQuotes(apiParam.getValue()));
if (StringUtil.isNotEmpty(apiParam.getVersion())&&"-".equals(apiParam.getVersion())) {
if (StringUtil.isNotEmpty(apiParam.getVersion())&&!"-".equals(apiParam.getVersion())) {
httpParam.setDescription(DocUtil.replaceNewLineToHtmlBr(apiParam.getDesc())+ "@since "+apiParam.getVersion());
} else {
httpParam.setDescription(DocUtil.replaceNewLineToHtmlBr(apiParam.getDesc()));
Expand Down

0 comments on commit 166027d

Please sign in to comment.