Skip to content

Commit

Permalink
update .net9
Browse files Browse the repository at this point in the history
  • Loading branch information
Controllerdestiny committed Jan 3, 2025
1 parent 749e073 commit 87cfbd9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ jobs:
with:
submodules: 'recursive'

- name: 初始化.NET 8
- name: 初始化.NET 9
uses: actions/setup-dotnet@v4
env:
DOTNET_CLI_UI_LANGUAGE: zh-CN
with:
dotnet-version: 8.0.x
dotnet-version: 9.0.x

- name: 构建插件
run: |
Expand Down
10 changes: 8 additions & 2 deletions Music/QQ/Music_QQ.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public Music_QQ(TokenInfo token)
Cookie = new();
foreach (var item in token.Cookie)
{
Cookie.Add(new Cookie(item.Key, item.Value, "/", "y.qq.com"));
Cookie.Add(new Cookie(item.Key, item.Value, "/", "u.y.qq.com"));
}
httpClientHandler = new()
{
Expand Down Expand Up @@ -75,12 +75,18 @@ public async Task<HomePageData> GetUserInfo()
{
module = "QQConnectLogin.LoginServer",
method = "QQLogin",
ignore_code = 1,
param = new
{
refresh_key = Token.RefreshToken,
refresh_key = Token.RefreshKey,
refresh_token = Token.RefreshToken,
musickey = Token.Musickey,
musicid = Token.Musicid,

},
extra_common = new
{
tmeLoginType = Token.LoginType.ToString()
}
};
var response = await Send(req);
Expand Down
2 changes: 1 addition & 1 deletion template.targets
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project>
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
Expand Down

0 comments on commit 87cfbd9

Please sign in to comment.