-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
335 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<Authors>Ray</Authors> | ||
<Version>0.0.2</Version> | ||
<Version>0.0.3</Version> | ||
<NoWarn>$(NoWarn);CS1591;CS0436</NoWarn> | ||
</PropertyGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env bash | ||
# new Env("bili每日任务[dev先行版]") | ||
# cron 0 9 * * * bili_dev_task_daily.sh | ||
|
||
dotnet run --project /ql/repo/raywangqvq_bilibilitoolpro_develop/src/Ray.BiliBiliTool.Console --ENVIRONMENT=Production --runTasks=Daily |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env bash | ||
# new Env("bili天选时刻[dev先行版]") | ||
# cron 0 13 * * * bili_dev_task_liveLottery.sh | ||
|
||
dotnet run --project /ql/repo/raywangqvq_bilibilitoolpro_develop/src/Ray.BiliBiliTool.Console --ENVIRONMENT=Production --runTasks=LiveLottery |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env bash | ||
# new Env("bili测试ck[dev先行版]") | ||
# cron 0 8 * * * bili_dev_task_test.sh | ||
|
||
dotnet run --project /ql/repo/raywangqvq_bilibilitoolpro_develop/src/Ray.BiliBiliTool.Console --ENVIRONMENT=Production --runTasks=Test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env bash | ||
# new Env("bili批量取关主播[dev先行版]") | ||
# cron 0 12 1 * * bili_dev_task_unfollowBatched.sh | ||
|
||
dotnet run --project /ql/repo/raywangqvq_bilibilitoolpro_develop/src/Ray.BiliBiliTool.Console --ENVIRONMENT=Production --runTasks=UnfollowBatched |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
src/Ray.BiliBiliTool.Agent/BiliBiliAgent/Dtos/Live/LiveWalletStatusResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Ray.BiliBiliTool.Agent.BiliBiliAgent.Dtos.Live | ||
{ | ||
public class LiveWalletStatusResponse | ||
{ | ||
/// <summary> | ||
/// 硬币余额 | ||
/// </summary> | ||
public decimal Coin { get; set; } | ||
|
||
/// <summary> | ||
/// 金瓜子余额 | ||
/// </summary> | ||
public decimal Gold { get; set; } | ||
|
||
/// <summary> | ||
/// 银瓜子余额 | ||
/// </summary> | ||
public decimal Silver { get; set; } | ||
|
||
/// <summary> | ||
/// 银瓜子兑换硬币剩余次数 | ||
/// </summary> | ||
public int Silver_2_coin_left { get; set; } | ||
|
||
/// <summary> | ||
/// 硬币兑换银瓜子剩余次数 | ||
/// </summary> | ||
public int Coin_2_silver_left { get; set; } | ||
} | ||
} |
44 changes: 44 additions & 0 deletions
44
src/Ray.BiliBiliTool.Agent/BiliBiliAgent/Dtos/Live/Silver2CoinRequest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
using Ray.BiliBiliTool.Infrastructure.Helpers; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Ray.BiliBiliTool.Agent.BiliBiliAgent.Dtos.Live | ||
{ | ||
public class Silver2CoinRequest | ||
{ | ||
public Silver2CoinRequest(string csrf) | ||
{ | ||
Csrf = csrf; | ||
} | ||
|
||
public string Csrf { get; set; } | ||
|
||
public string Csrf_token => Csrf; | ||
|
||
/// <summary> | ||
/// | ||
/// </summary> | ||
/// <sample>8u0w3cesz1o0</sample> | ||
/// <sample>33moy4vugle0</sample> | ||
/// <sample>9zys612vo0c0</sample> | ||
/// <sample>3uu2mkxt21c0</sample> | ||
/// <sample>8orqn5vf4i00</sample> | ||
public string Visit_id { get; set; } = _visitId;//todo | ||
|
||
public static string GetRandomVisitId() | ||
{ | ||
var ran = new Random(); | ||
int first = ran.Next(1, 10); | ||
int last = 0; | ||
|
||
var s = new RandomHelper().GenerateCode(10).ToLower(); | ||
|
||
return $"{first}{s}{last}"; | ||
} | ||
|
||
private static string _visitId = GetRandomVisitId(); | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
src/Ray.BiliBiliTool.Agent/BiliBiliAgent/Dtos/Live/Silver2CoinResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using Ray.BiliBiliTool.Infrastructure.Helpers; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Ray.BiliBiliTool.Agent.BiliBiliAgent.Dtos.Live | ||
{ | ||
public class Silver2CoinResponse | ||
{ | ||
public long Coin { get; set; } | ||
|
||
public long Gold { get; set; } | ||
|
||
public long Silver { get; set; } | ||
|
||
public string Tid { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.