类型重命名
This commit is contained in:
parent
4a014ccfba
commit
4be77b94fe
@ -7,7 +7,7 @@ namespace FastGithub.Upgrade
|
||||
/// <summary>
|
||||
/// 发行记录
|
||||
/// </summary>
|
||||
sealed class Release
|
||||
sealed class GiteeRelease
|
||||
{
|
||||
/// <summary>
|
||||
/// 标签名
|
||||
@ -57,10 +57,10 @@ namespace FastGithub.Upgrade
|
||||
/// 获取最新发布
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public async Task<Release?> GetLastedReleaseAsync(CancellationToken cancellationToken)
|
||||
public async Task<GiteeRelease?> GetLastedReleaseAsync(CancellationToken cancellationToken)
|
||||
{
|
||||
using var httpClient = new HttpClient();
|
||||
var releases = await httpClient.GetFromJsonAsync<Release[]>(ReleasesUri, cancellationToken);
|
||||
var releases = await httpClient.GetFromJsonAsync<GiteeRelease[]>(ReleasesUri, cancellationToken);
|
||||
return releases?.FirstOrDefault();
|
||||
}
|
||||
}
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
},
|
||||
"Github": {
|
||||
"Lookup": { // ip²éÕÒ
|
||||
"Domains": [ // 查找的域名,下面是github主最要的域名
|
||||
"Domains": [ // 查找的域名,下面是github最主要的域名
|
||||
"github.com",
|
||||
"api.github.com",
|
||||
"collector.githubapp.com",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user