降低pixiv刷新次数

This commit is contained in:
2025-02-28 19:56:49 +08:00
parent 1fa5e0c037
commit 41767d1195
2 changed files with 11 additions and 7 deletions

View File

@@ -1,17 +1,17 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<Nullable>disable</Nullable>
<Nullable>annotations</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="FreeSql.Extensions.JsonMap" Version="3.5.104" />
<PackageReference Include="FreeSql.Provider.PostgreSQL" Version="3.5.104" />
<PackageReference Include="Masuit.Tools.Core" Version="2025.1.0" />
<PackageReference Include="Microsoft.FluentUI.AspNetCore.Components" Version="4.11.3" />
<PackageReference Include="Microsoft.FluentUI.AspNetCore.Components.Icons" Version="4.11.3" />
<PackageReference Include="FreeSql.Extensions.JsonMap" Version="3.5.106" />
<PackageReference Include="FreeSql.Provider.PostgreSQL" Version="3.5.106" />
<PackageReference Include="Masuit.Tools.Core" Version="2025.1.4" />
<PackageReference Include="Microsoft.FluentUI.AspNetCore.Components" Version="4.11.5" />
<PackageReference Include="Microsoft.FluentUI.AspNetCore.Components.Icons" Version="4.11.5" />
<PackageReference Include="Minio" Version="6.0.4" />
</ItemGroup>

View File

@@ -57,6 +57,10 @@ namespace MegghysAPI.Modules
.ExecuteAffrows();
Logs.Success($"[{Favorites.Count}] 发现新增收藏: {Favorites.Last().Title}, 类型: {Favorites.Last().Restrict}");
}
else
{
return; // 不存在更新的了
}
});
var next = (string)json["next_url"];
if (next is null)