diff --git a/src/Ray.BiliBiliTool.Agent/BiliBiliAgent/Interfaces/IMangaApi.cs b/src/Ray.BiliBiliTool.Agent/BiliBiliAgent/Interfaces/IMangaApi.cs
index 903d5405c..7a851b2de 100644
--- a/src/Ray.BiliBiliTool.Agent/BiliBiliAgent/Interfaces/IMangaApi.cs
+++ b/src/Ray.BiliBiliTool.Agent/BiliBiliAgent/Interfaces/IMangaApi.cs
@@ -26,8 +26,8 @@ public interface IMangaApi : IBiliBiliApi
///
///
///
- [HttpPost("/twirp/bookshelf.v1.Bookshelf/AddHistory?platform={platform}&comic_id=27355&ep_id=381662")]
- Task ReadManga(string platform);
+ [HttpPost("/twirp/bookshelf.v1.Bookshelf/AddHistory?platform={platform}&comic_id={comic_id}&ep_id={ep_id}")]
+ Task ReadManga(string platform, long comic_id, long ep_id);
///
/// 获取会员漫画奖励
diff --git a/src/Ray.BiliBiliTool.Config/Options/DailyTaskOptions.cs b/src/Ray.BiliBiliTool.Config/Options/DailyTaskOptions.cs
index de5f2df70..2258edf00 100644
--- a/src/Ray.BiliBiliTool.Config/Options/DailyTaskOptions.cs
+++ b/src/Ray.BiliBiliTool.Config/Options/DailyTaskOptions.cs
@@ -82,6 +82,16 @@ public string ChargeComment
///
public string DevicePlatform { get; set; } = "android";
+ ///
+ /// 自定义漫画阅读 comic_id
+ ///
+ public long CustomComicId { get; set; } = 27355;
+
+ ///
+ /// 自定义漫画阅读 ep_id
+ ///
+ public long CustomEpId { get; set; } = 381662;
+
public List SupportUpIdList
{
get
diff --git a/src/Ray.BiliBiliTool.Console/appsettings.json b/src/Ray.BiliBiliTool.Console/appsettings.json
index 3eea38f84..a3f85f0cf 100644
--- a/src/Ray.BiliBiliTool.Console/appsettings.json
+++ b/src/Ray.BiliBiliTool.Console/appsettings.json
@@ -16,7 +16,9 @@
"ChargeComment": "", //充电后留言
"DayOfReceiveVipPrivilege": 1, //每月几号自动领取会员权益的[-1,31],-1表示不指定,默认每月1号;0表示不自动领取
"DayOfExchangeSilver2Coin": 0, //每月几号执行银瓜子兑换硬币[-1,31],-1表示不指定,默认每月最后一天;-2表示每天;0表示不进行兑换
- "DevicePlatform": "android" //执行客户端操作时的平台 [ios,android]
+ "DevicePlatform": "android", //执行客户端操作时的平台 [ios,android]
+ "CustomComicId": 27355, //自定义漫画阅读 comic_id,若不清楚含义请勿修改
+ "CustomEpId": 381662 //自定义漫画阅读 ep_id,若不清楚含义请勿修改
},
"LiveLotteryTaskConfig": {
diff --git a/src/Ray.BiliBiliTool.DomainService/MangaDomainService.cs b/src/Ray.BiliBiliTool.DomainService/MangaDomainService.cs
index 4459f4625..7d175a108 100644
--- a/src/Ray.BiliBiliTool.DomainService/MangaDomainService.cs
+++ b/src/Ray.BiliBiliTool.DomainService/MangaDomainService.cs
@@ -62,11 +62,12 @@ public async Task MangaSign()
///
public async Task MangaRead()
{
- BiliApiResponse response = await _mangaApi.ReadManga(_dailyTaskOptions.DevicePlatform);
+ if ( _dailyTaskOptions.CustomComicId <= 0 ) return;
+ BiliApiResponse response = await _mangaApi.ReadManga(_dailyTaskOptions.DevicePlatform, _dailyTaskOptions.CustomComicId, _dailyTaskOptions.CustomEpId);
if (response.Code == 0)
{
- _logger.LogInformation("【漫画阅读】成功, 阅读漫画为:堀与宫村");
+ _logger.LogInformation("【漫画阅读】成功");
}
else
{