Skip to content

Commit

Permalink
Merge pull request #20 from amwangfan/main
Browse files Browse the repository at this point in the history
解决自2020/12/21起build的报错问题
  • Loading branch information
FirmianaMarsili authored Dec 26, 2024
2 parents b76a216 + 85071b0 commit 8c1dfb1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/picacgPunch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ jobs:
- name: .Net Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: '5.0.x'

dotnet-version: '8.0.x'


- name: Build
run: dotnet build -c Release

Expand Down
3 changes: 2 additions & 1 deletion Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ private static async Task PunchAsync(string username,string password,int index)
Profile profile = await PicacomicUrl.Profile();
Log($"昵称:{profile.User.Name}");
Log("开始签到");
Punch punch = await PicacomicUrl.Punch();
Punch punch = await PicacomicUrl.Punch(); 
if (punch.PunchSuccess)
{
Log("签到完成");
Expand All @@ -79,3 +79,4 @@ private static async Task PunchAsync(string username,string password,int index)

}
}

2 changes: 1 addition & 1 deletion picacomic-Punch.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 8c1dfb1

Please sign in to comment.