Skip to content

Commit 8c1dfb1

Browse files
Merge pull request #20 from amwangfan/main
解决自2020/12/21起build的报错问题
2 parents b76a216 + 85071b0 commit 8c1dfb1

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/picacgPunch.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@ jobs:
3030
- name: .Net Core
3131
uses: actions/setup-dotnet@v1
3232
with:
33-
dotnet-version: '5.0.x'
34-
33+
dotnet-version: '8.0.x'
34+
35+
3536
- name: Build
3637
run: dotnet build -c Release
3738

Program.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ private static async Task PunchAsync(string username,string password,int index)
6363
Profile profile = await PicacomicUrl.Profile();
6464
Log($"昵称:{profile.User.Name}");
6565
Log("开始签到");
66-
Punch punch = await PicacomicUrl.Punch();
66+
Punch punch = await PicacomicUrl.Punch(); 
6767
if (punch.PunchSuccess)
6868
{
6969
Log("签到完成");
@@ -79,3 +79,4 @@ private static async Task PunchAsync(string username,string password,int index)
7979

8080
}
8181
}
82+

picacomic-Punch.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net5.0</TargetFramework>
5+
<TargetFramework>net8.0</TargetFramework>
66
</PropertyGroup>
77

88
<ItemGroup>

0 commit comments

Comments
 (0)