Skip to content

Commit

Permalink
update consts
Browse files Browse the repository at this point in the history
  • Loading branch information
RayWangQvQ committed Jan 23, 2025
1 parent 9e08fc7 commit 2bdb07c
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 10 deletions.
32 changes: 30 additions & 2 deletions bruno/app.bilibili.com/pgc/activity/deliver/material/receive.bru
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ headers {
x-bili-gaia-vtoken:
x-bili-ticket: eyJhbGciOiJIUzI1NiIsImtpZCI6InMwMyIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MzU3NzI2NDcsImlhdCI6MTczNTc0MzU0NywiYnV2aWQiOiJYVzcyNEQxNzI0Njg3MTlDQzI1NjA1REIyNDI0NzhEMkUxMjE5In0.eafhpooLoe2q6cA45_Xrgq1VO-y490pxP5gwJ4qm_ik
bili-http-engine: cronet
Cookie: {{cookieStr}}
}

body:form-urlencoded {
access_key: {{access_key}}
activity_code:
appkey: {{appKey}}
build: 7720200
Expand All @@ -44,8 +44,9 @@ body:form-urlencoded {
season_id: 12548
spmid: united.player-video-detail.0.0
statistics: {"appId":1,"platform":3,"version":"7.72.0","abtest":""}
ts: 1735744215
ts: 1736179521
sign: 132d2532467ef649a925aece247cdb4b
access_key: {{access_key}}
}

docs {
Expand All @@ -65,4 +66,31 @@ docs {
- 领取:app.bilibili.com/pgc/activity/score/task/receive/v2
- 开始:app.bilibili.com/pgc/activity/deliver/material/receive
- 上报完成:app.bilibili.com/pgc/activity/deliver/task/complete

Response Sample:

```json
{
"code": 0,
"data": {
"closeType": "close_win",
"container": [],
"showTime": "",
"watch_count_down_cfg": {
"action": "url",
"closeType": "close_win",
"complete_status_desc": "大积分已到账",
"complete_status_jump_url": "https://big.bilibili.com/mobile/bigPoint?navhide=1&closable=1",
"count_down_status_desc": "看${time}获大积分",
"login": true,
"milliseconds": 600000,
"pause_status_desc": "计时暂停",
"showTime": "ENTER",
"task_id": "4320003",
"token": "67ba5888e7"
}
},
"message": "success"
}
```
}
7 changes: 4 additions & 3 deletions bruno/app.bilibili.com/pgc/activity/deliver/task/complete.bru
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ headers {
x-bili-gaia-vtoken:
x-bili-ticket: eyJhbGciOiJIUzI1NiIsImtpZCI6InMwMyIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MzU3NzI2NDcsImlhdCI6MTczNTc0MzU0NywiYnV2aWQiOiJYVzcyNEQxNzI0Njg3MTlDQzI1NjA1REIyNDI0NzhEMkUxMjE5In0.eafhpooLoe2q6cA45_Xrgq1VO-y490pxP5gwJ4qm_ik
bili-http-engine: cronet
Cookie: {{cookieStr}}
}

body:form-urlencoded {
appkey: {{appKey}}
build: 7720200
c_locale: zh_CN
channel: yingyongbao
Expand All @@ -39,12 +39,13 @@ body:form-urlencoded {
s_locale: zh_CN
statistics: {"appId":1,"platform":3,"version":"7.72.0","abtest":""}
task_id: 4320003
token: 8ff0236ee6
token: abe88f72be
access_key: {{access_key}}
task_sign: 78cf66f2699393751c41c2fda27c2ccf
timestamp: 1735744760834
ts: 1735744760
sign: 2292d647d9b3f6dbd2f99b5a90cbddaf
appkey: {{appKey}}
task_sign: 93a1c64da4c02c31ca7575c08212e08f
}

docs {
Expand Down
2 changes: 1 addition & 1 deletion src/Ray.BiliBiliTool.Agent/BiliCookie.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public override void Check()
}

if (!result)
throw new Exception($"请正确配置Cookie后再运行,配置方式见 {Constants.SourceCodeUrl}");
throw new Exception($"请正确配置Cookie后再运行,配置方式见 {Config.Constants.SourceCodeUrl}");
}

private string GetPropertyDescription(string propertyName)
Expand Down
2 changes: 1 addition & 1 deletion src/Ray.BiliBiliTool.Application/DailyTaskAppService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public DailyTaskAppService(
BiliCookie biliCookie)
{
_logger = logger;
_expDic = dicOptions.Get(Constants.OptionsNames.ExpDictionaryName);
_expDic = dicOptions.Get(Config.Constants.OptionsNames.ExpDictionaryName);
_accountDomainService = accountDomainService;
_videoDomainService = videoDomainService;
_articleDomainService = articleDomainService;
Expand Down
4 changes: 2 additions & 2 deletions src/Ray.BiliBiliTool.DomainService/DonateCoinDomainService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ IVideoApi videoApi
_videoDomainService = videoDomainService;
_relationApi = relationApi;
_videoApi = videoApi;
_expDic = expDicOptions.Get(Constants.OptionsNames.ExpDictionaryName);
_donateContinueStatusDic = donateContinueStatusDicOptions.Get(Constants.OptionsNames.DonateCoinCanContinueStatusDictionaryName);
_expDic = expDicOptions.Get(Config.Constants.OptionsNames.ExpDictionaryName);
_donateContinueStatusDic = donateContinueStatusDicOptions.Get(Config.Constants.OptionsNames.DonateCoinCanContinueStatusDictionaryName);
}

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion src/Ray.BiliBiliTool.DomainService/VideoDomainService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ IWbiService wbiService
_videoWithoutCookieApi = videoWithoutCookieApi;
_wbiService = wbiService;
_biliBiliCookie = biliBiliCookie;
_expDic = dicOptions.Get(Constants.OptionsNames.ExpDictionaryName);
_expDic = dicOptions.Get(Config.Constants.OptionsNames.ExpDictionaryName);
_dailyTaskOptions = dailyTaskOptions.CurrentValue;
}

Expand Down

0 comments on commit 2bdb07c

Please sign in to comment.