Skip to content

Commit

Permalink
fix: 下载浏览器版本出错
Browse files Browse the repository at this point in the history
  • Loading branch information
fanyong920 committed Dec 30, 2024
1 parent c5e56f4 commit a015b4e
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,10 @@ private String resolveVersion(FetcherOptions options) {
return parseRevision(BrowserRevision.getVersion(this.product));
}
} else {
if (StringUtil.isNotBlank(options.getVersion())) {
//指定了版本,直接使用指定版本
return options.getVersion();
}
//指定了渠道,返回该渠道下的最新版本
if (Objects.nonNull(options.getChannel())) {
return getLastKnownGoodReleaseForChannel(options.getChannel());
Expand Down

0 comments on commit a015b4e

Please sign in to comment.