From 3e32966c5a0edcbae229c4503a285364a587d92c Mon Sep 17 00:00:00 2001 From: andywang425 <13120989656@163.com> Date: Mon, 7 Aug 2023 23:22:30 +0800 Subject: [PATCH 01/10] =?UTF-8?q?=E2=9C=A8=20feat:=20=E9=A2=86=E5=8F=96?= =?UTF-8?q?=E5=B9=B4=E5=BA=A6=E5=A4=A7=E4=BC=9A=E5=91=98=E6=9D=83=E7=9B=8A?= =?UTF-8?q?=EF=BC=88=E7=B1=BB=E5=9E=8B=E5=AE=9A=E4=B9=89=E5=92=8C=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E5=80=BC=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/library/storage/defaultValue.ts | 4 ++++ src/stores/useModuleStore.ts | 3 ++- src/types/helpInfo.d.ts | 1 + src/types/moduleStatus.d.ts | 1 + src/types/storage.d.ts | 4 ++++ 5 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/library/storage/defaultValue.ts b/src/library/storage/defaultValue.ts index 30c15903..ba654a53 100644 --- a/src/library/storage/defaultValue.ts +++ b/src/library/storage/defaultValue.ts @@ -93,6 +93,10 @@ const defaultValues: IdefaultValues = { enabled: false, num: 1, _lastCompleteTime: 0 + }, + getYearVipPrivilege: { + enabled: false, + _nextReceiveTime: 0 } } }, diff --git a/src/stores/useModuleStore.ts b/src/stores/useModuleStore.ts index 07387547..2635d1bd 100644 --- a/src/stores/useModuleStore.ts +++ b/src/stores/useModuleStore.ts @@ -34,7 +34,8 @@ const defaultModuleStatus: ImoduleStatus = { OtherTasks: { groupSign: '', silverToCoin: '', - coinToSilver: '' + coinToSilver: '', + getYearVipPrivilege: '' } } } diff --git a/src/types/helpInfo.d.ts b/src/types/helpInfo.d.ts index 93f4a91b..2556332f 100644 --- a/src/types/helpInfo.d.ts +++ b/src/types/helpInfo.d.ts @@ -27,6 +27,7 @@ interface IhelpInfo { groupSign: IhelpInfoItem silverToCoin: IhelpInfoItem coinToSilver: IhelpInfoItem + getYearVipPrivilege: IhelpInfoItem } } EnhanceExperience: { diff --git a/src/types/moduleStatus.d.ts b/src/types/moduleStatus.d.ts index 51c07559..4324aef5 100644 --- a/src/types/moduleStatus.d.ts +++ b/src/types/moduleStatus.d.ts @@ -21,6 +21,7 @@ interface ImoduleStatus { groupSign: Istatus silverToCoin: Istatus coinToSilver: Istatus + getYearVipPrivilege: Istatus } } } diff --git a/src/types/storage.d.ts b/src/types/storage.d.ts index 4d5fd2ff..ff5b3d5e 100644 --- a/src/types/storage.d.ts +++ b/src/types/storage.d.ts @@ -64,6 +64,10 @@ interface ImoduleConfig { num: number _lastCompleteTime: number } + getYearVipPrivilege: { + enabled: boolean + _nextReceiveTime: number + } } } EnhanceExperience: { From bd95fcf77300fd4ed7efd72009631bae8b58a95d Mon Sep 17 00:00:00 2001 From: andywang425 <13120989656@163.com> Date: Tue, 8 Aug 2023 14:41:15 +0800 Subject: [PATCH 02/10] =?UTF-8?q?=F0=9F=90=B3=20chore:=20=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=A4=A7=E4=BC=9A=E5=91=98=E6=9D=83=E7=9B=8A=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E7=9A=84=E4=B8=A4=E4=B8=AAAPI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/library/bili-api/api.d.ts | 4 ++++ src/library/bili-api/data.d.ts | 19 +++++++++++++++++ src/library/bili-api/index.ts | 34 ++++++++++++++++++++++++++++++ src/library/bili-api/response.d.ts | 15 +++++++++++++ 4 files changed, 72 insertions(+) diff --git a/src/library/bili-api/api.d.ts b/src/library/bili-api/api.d.ts index 53c45d3b..1fd982c4 100644 --- a/src/library/bili-api/api.d.ts +++ b/src/library/bili-api/api.d.ts @@ -105,6 +105,10 @@ interface IbapiMethods { ga?: number ) => Promise videoRelation: (aid: string, bvid?: string) => Promise + vip: { + myPrivilege: () => Promise + receivePrivilege: (type: number, platform?: string) => Promise + } } vc: { myGroups: (build?: numeber, mobi_app?: string) => Promise diff --git a/src/library/bili-api/data.d.ts b/src/library/bili-api/data.d.ts index 4f024900..69989021 100644 --- a/src/library/bili-api/data.d.ts +++ b/src/library/bili-api/data.d.ts @@ -1427,6 +1427,25 @@ declare namespace MainData { coin: number } } + + namespace Vip { + namespace MyPrivilege { + interface Data { + list: List[] + is_short_vip: boolean + is_freight_open: boolean + } + + interface List { + type: number + state: number + expire_time: number + vip_type: number + next_receive_days: number + period_end_unix: number + } + } + } } declare namespace VcData { diff --git a/src/library/bili-api/index.ts b/src/library/bili-api/index.ts index 311d5dc6..8d65186e 100644 --- a/src/library/bili-api/index.ts +++ b/src/library/bili-api/index.ts @@ -268,6 +268,40 @@ const BAPI: IbapiMethods = { aid, bvid }) + }, + vip: { + myPrivilege: () => { + const bili_jct = (useBiliStore().cookies as IbiliCookies).bili_jct as string + return request.main.get( + '/x/vip/privilege/my', + { + csrf: bili_jct + }, + { + headers: { + Referer: 'https://account.bilibili.com/account/big/myPackage', + Origin: 'https://account.bilibili.com/account/big/myPackage' + } + } + ) + }, + receivePrivilege: (type, platform = 'web') => { + const bili_jct = (useBiliStore().cookies as IbiliCookies).bili_jct as string + return request.main.post( + '/x/vip/privilege/receive', + { + type, + platform, + csrf: bili_jct + }, + { + headers: { + Referer: 'https://account.bilibili.com/account/big/myPackage', + Origin: 'https://account.bilibili.com/account/big/myPackage' + } + } + ) + } } }, vc: { diff --git a/src/library/bili-api/response.d.ts b/src/library/bili-api/response.d.ts index 3a97eae0..93895bdd 100644 --- a/src/library/bili-api/response.d.ts +++ b/src/library/bili-api/response.d.ts @@ -141,6 +141,21 @@ declare namespace Main { ttl: number data: MainData.VideoRelation.Data } + + namespace Vip { + interface MyPrivilege { + code: number + message: string + ttl: number + data: MainData.Vip.MyPrivilege.Data + } + + interface ReceivePrivilege { + code: number + message: string + ttl: number + } + } } declare namespace Vc { From 190f9e02563d5d4f25a9e4031370e3be46e08ae1 Mon Sep 17 00:00:00 2001 From: andywang425 <13120989656@163.com> Date: Tue, 8 Aug 2023 20:59:58 +0800 Subject: [PATCH 03/10] =?UTF-8?q?=F0=9F=90=B3=20chore:=20=E9=A2=86?= =?UTF-8?q?=E5=8F=96=E5=B9=B4=E5=BA=A6=E5=A4=A7=E4=BC=9A=E5=91=98=E6=9D=83?= =?UTF-8?q?=E7=9B=8A=EF=BC=88=E5=BC=80=E5=A4=B4=EF=BC=89;=20=E8=A7=84?= =?UTF-8?q?=E8=8C=83=E6=A8=A1=E5=9D=97=E5=91=BD=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/OtherTasks.vue | 7 +++++++ .../{coinToSilver.ts => coinToSilverTask.ts} | 4 ++-- .../otherTasks/getYearVipPrivilegeTask.ts | 16 ++++++++++++++++ src/modules/dailyTasks/otherTasks/index.ts | 4 ++-- .../{silverToCoin.ts => silverToCoinTask.ts} | 4 ++-- 5 files changed, 29 insertions(+), 6 deletions(-) rename src/modules/dailyTasks/otherTasks/{coinToSilver.ts => coinToSilverTask.ts} (95%) create mode 100644 src/modules/dailyTasks/otherTasks/getYearVipPrivilegeTask.ts rename src/modules/dailyTasks/otherTasks/{silverToCoin.ts => silverToCoinTask.ts} (96%) diff --git a/src/components/OtherTasks.vue b/src/components/OtherTasks.vue index f37ed20d..d065c855 100644 --- a/src/components/OtherTasks.vue +++ b/src/components/OtherTasks.vue @@ -36,6 +36,13 @@ const status = moduleStore.moduleStatus.DailyTasks.OtherTasks + + + + + + + diff --git a/src/modules/dailyTasks/otherTasks/coinToSilver.ts b/src/modules/dailyTasks/otherTasks/coinToSilverTask.ts similarity index 95% rename from src/modules/dailyTasks/otherTasks/coinToSilver.ts rename to src/modules/dailyTasks/otherTasks/coinToSilverTask.ts index 039e0b6c..b335b5a3 100644 --- a/src/modules/dailyTasks/otherTasks/coinToSilver.ts +++ b/src/modules/dailyTasks/otherTasks/coinToSilverTask.ts @@ -3,7 +3,7 @@ import { isTimestampToday, delayToNextMoment, tsm, isNowIn } from '../../../libr import BAPI from '../../../library/bili-api' import { Istatus } from '../../../types/moduleStatus' -class CoinToSilver extends BaseModule { +class CoinToSilverTask extends BaseModule { config = this.moduleStore.moduleConfig.DailyTasks.OtherTasks.coinToSilver set status(s: Istatus) { @@ -50,4 +50,4 @@ class CoinToSilver extends BaseModule { } } -export default CoinToSilver +export default CoinToSilverTask diff --git a/src/modules/dailyTasks/otherTasks/getYearVipPrivilegeTask.ts b/src/modules/dailyTasks/otherTasks/getYearVipPrivilegeTask.ts new file mode 100644 index 00000000..b6659de9 --- /dev/null +++ b/src/modules/dailyTasks/otherTasks/getYearVipPrivilegeTask.ts @@ -0,0 +1,16 @@ +import BaseModule from '../../BaseModule' +import { tsm } from '../../../library/luxon' +import BAPI from '../../../library/bili-api' +import { Istatus } from '../../../types/moduleStatus' + +class GetYearVipPrivilegeTask extends BaseModule { + config = this.moduleStore.moduleConfig.DailyTasks.OtherTasks.getYearVipPrivilege + + set status(s: Istatus) { + this.moduleStore.moduleStatus.DailyTasks.OtherTasks.getYearVipPrivilege = s + } + + public async run() {} +} + +export default GetYearVipPrivilegeTask diff --git a/src/modules/dailyTasks/otherTasks/index.ts b/src/modules/dailyTasks/otherTasks/index.ts index 9e1b98ea..f43dbb56 100644 --- a/src/modules/dailyTasks/otherTasks/index.ts +++ b/src/modules/dailyTasks/otherTasks/index.ts @@ -1,3 +1,3 @@ export { default as DailyTask_OtherTask_GroupSignTask } from './groupSignTask' -export { default as DailyTask_OtherTask_SilverToCoin } from './silverToCoin' -export { default as DailyTask_OtherTask_CoinToSilver } from './coinToSilver' +export { default as DailyTask_OtherTask_SilverToCoinTask } from './silverToCoinTask' +export { default as DailyTask_OtherTask_CoinToSilverTask } from './coinToSilverTask' diff --git a/src/modules/dailyTasks/otherTasks/silverToCoin.ts b/src/modules/dailyTasks/otherTasks/silverToCoinTask.ts similarity index 96% rename from src/modules/dailyTasks/otherTasks/silverToCoin.ts rename to src/modules/dailyTasks/otherTasks/silverToCoinTask.ts index 43a8b3f8..8cc56201 100644 --- a/src/modules/dailyTasks/otherTasks/silverToCoin.ts +++ b/src/modules/dailyTasks/otherTasks/silverToCoinTask.ts @@ -3,7 +3,7 @@ import { isTimestampToday, delayToNextMoment, tsm, isNowIn } from '../../../libr import BAPI from '../../../library/bili-api' import { Istatus } from '../../../types/moduleStatus' -class SilverToCoin extends BaseModule { +class SilverToCoinTask extends BaseModule { config = this.moduleStore.moduleConfig.DailyTasks.OtherTasks.silverToCoin set status(s: Istatus) { @@ -55,4 +55,4 @@ class SilverToCoin extends BaseModule { } } -export default SilverToCoin +export default SilverToCoinTask From ff5288a043270dbfa293660db94103f98e7566dc Mon Sep 17 00:00:00 2001 From: andywang425 <13120989656@163.com> Date: Thu, 10 Aug 2023 12:19:22 +0800 Subject: [PATCH 04/10] =?UTF-8?q?=F0=9F=90=B3=20chore:=20=E9=A2=86?= =?UTF-8?q?=E5=8F=96=E5=B9=B4=E5=BA=A6=E5=A4=A7=E4=BC=9A=E5=91=98=E6=9D=83?= =?UTF-8?q?=E7=9B=8A=EF=BC=88=E9=83=A8=E5=88=86=EF=BC=89=E5=92=8C=E9=94=99?= =?UTF-8?q?=E5=AD=97=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../otherTasks/getYearVipPrivilegeTask.ts | 33 ++++++++++++++++++- src/modules/default/biliInfo.ts | 2 +- 2 files changed, 33 insertions(+), 2 deletions(-) diff --git a/src/modules/dailyTasks/otherTasks/getYearVipPrivilegeTask.ts b/src/modules/dailyTasks/otherTasks/getYearVipPrivilegeTask.ts index b6659de9..cf50d6da 100644 --- a/src/modules/dailyTasks/otherTasks/getYearVipPrivilegeTask.ts +++ b/src/modules/dailyTasks/otherTasks/getYearVipPrivilegeTask.ts @@ -2,6 +2,7 @@ import BaseModule from '../../BaseModule' import { tsm } from '../../../library/luxon' import BAPI from '../../../library/bili-api' import { Istatus } from '../../../types/moduleStatus' +import { useBiliStore } from '../../../stores/useBiliStore' class GetYearVipPrivilegeTask extends BaseModule { config = this.moduleStore.moduleConfig.DailyTasks.OtherTasks.getYearVipPrivilege @@ -10,7 +11,37 @@ class GetYearVipPrivilegeTask extends BaseModule { this.moduleStore.moduleStatus.DailyTasks.OtherTasks.getYearVipPrivilege = s } - public async run() {} + private async myPrivilege() { + try { + const response = await BAPI.main.vip.myPrivilege() + this.logger.log(`BAPI.main.vip.myPrivilege response`, response) + if (response.code === 0) { + return + } else { + this.logger.error(`获取年度大会员权益信息失败`, response.message) + this.status = 'error' + } + } catch (error) { + this.logger.error(`获取年度大会员权益信息出错`, error) + this.status = 'error' + } + } + + private isYearVip() { + const biliStore = useBiliStore() + const userInfo = biliStore.userInfo + if (userInfo && userInfo.vip.status === 1 && userInfo.vip.type === 2) { + return true + } else { + return false + } + } + + public async run() { + if (this.isYearVip()) { + // todo + } + } } export default GetYearVipPrivilegeTask diff --git a/src/modules/default/biliInfo.ts b/src/modules/default/biliInfo.ts index e5247617..9d226ecc 100644 --- a/src/modules/default/biliInfo.ts +++ b/src/modules/default/biliInfo.ts @@ -154,7 +154,7 @@ class BiliInfo extends DefaultBaseModule { this.logger.log('BAPI.live.fansMedalPanel(1) response', firstPageResponse) if (firstPageResponse.code === 0) { total_page = firstPageResponse.data.page_info.total_page - // 第一页的 list 缺少当前佩戴和最卷获得BAPI.main.share的勋章,需通过 special_list 获取 + // 第一页的 list 缺少当前佩戴和最近获得的勋章,需通过 special_list 获取 fansMetalList.push(...firstPageResponse.data.special_list, ...firstPageResponse.data.list) } else { this.logger.error('获取粉丝勋章列表第1页失败', firstPageResponse.message) From cfd0a625464aa8dc75a85e19328daa010347a0eb Mon Sep 17 00:00:00 2001 From: andywang425 <13120989656@163.com> Date: Thu, 10 Aug 2023 17:23:32 +0800 Subject: [PATCH 05/10] =?UTF-8?q?=E2=9C=A8=20feat:=20=E5=AE=8C=E6=88=90?= =?UTF-8?q?=E9=A2=86=E5=8F=96=E5=B9=B4=E5=BA=A6=E5=A4=A7=E4=BC=9A=E5=91=98?= =?UTF-8?q?=E6=9D=83=E7=9B=8A=E5=8A=9F=E8=83=BD=EF=BC=88=E6=9C=AA=E8=BF=9B?= =?UTF-8?q?=E8=A1=8C=E6=88=90=E5=8A=9F=E9=A2=86=E5=8F=96=E7=9A=84=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../otherTasks/getYearVipPrivilegeTask.ts | 76 +++++++++++++++++-- src/modules/dailyTasks/otherTasks/index.ts | 1 + 2 files changed, 71 insertions(+), 6 deletions(-) diff --git a/src/modules/dailyTasks/otherTasks/getYearVipPrivilegeTask.ts b/src/modules/dailyTasks/otherTasks/getYearVipPrivilegeTask.ts index cf50d6da..80cdbda1 100644 --- a/src/modules/dailyTasks/otherTasks/getYearVipPrivilegeTask.ts +++ b/src/modules/dailyTasks/otherTasks/getYearVipPrivilegeTask.ts @@ -1,8 +1,10 @@ import BaseModule from '../../BaseModule' -import { tsm } from '../../../library/luxon' +import { delayToNextMoment, ts } from '../../../library/luxon' import BAPI from '../../../library/bili-api' import { Istatus } from '../../../types/moduleStatus' import { useBiliStore } from '../../../stores/useBiliStore' +import { MainData } from '../../../library/bili-api/data' +import { DateTime } from 'luxon' class GetYearVipPrivilegeTask extends BaseModule { config = this.moduleStore.moduleConfig.DailyTasks.OtherTasks.getYearVipPrivilege @@ -11,12 +13,16 @@ class GetYearVipPrivilegeTask extends BaseModule { this.moduleStore.moduleStatus.DailyTasks.OtherTasks.getYearVipPrivilege = s } - private async myPrivilege() { + /** + * 获取会员权益 + * @returns 会员权益列表 + */ + private async myPrivilege(): Promise { try { const response = await BAPI.main.vip.myPrivilege() this.logger.log(`BAPI.main.vip.myPrivilege response`, response) if (response.code === 0) { - return + return response.data.list } else { this.logger.error(`获取年度大会员权益信息失败`, response.message) this.status = 'error' @@ -27,19 +33,77 @@ class GetYearVipPrivilegeTask extends BaseModule { } } - private isYearVip() { + /** + * 领取权益 + * @param type 权益种类 + */ + private async receivePrivilege(type: number) { + try { + const response = await BAPI.main.vip.receivePrivilege(type) + this.logger.log(`BAPI.main.vip.receivePrivilege(${type}) response`, response) + if (response.code === 0) { + this.logger.log(`领取年度大会员权益(type = ${type})成功`) + } else { + this.logger.error(`领取年度大会员权益(type = ${type})失败`, response.message) + } + } catch (error) { + this.logger.error(`领取年度大会员权益(type = ${type})出错`, error) + } + } + + /** + * 判断当前账号是否是年度大会员 + */ + private isYearVip(): boolean { const biliStore = useBiliStore() const userInfo = biliStore.userInfo if (userInfo && userInfo.vip.status === 1 && userInfo.vip.type === 2) { return true } else { + this.logger.log('当前账号不是年度大会员,不领取权益') return false } } public async run() { - if (this.isYearVip()) { - // todo + this.logger.log('领取年度大会员权益模块开始运行') + if (this.config.enabled) { + if (this.isYearVip()) { + if (ts() >= this.config._nextReceiveTime) { + // 当前时间已经超过了上次记录的下次领取时间,领取权益 + const list = await this.myPrivilege() + if (list) { + for (const i of list) { + if (i.vip_type === 2) { + if (i.state === 0) { + await this.receivePrivilege(i.type) + } else { + this.logger.log(`该权益(type = ${i.type})已经领取过了`) + } + } else { + this.logger.warn('发现不属于年度大会员的权益', i) + } + } + this.config._nextReceiveTime = Math.max(...list.map((i) => i.period_end_unix)) + } + } else { + // 否则等待下次运行或什么都不做 + const diff = this.config._nextReceiveTime - ts() + if (diff < 86400) { + this.logger.log( + '领取年度大会员权益模块下次运行时间:', + DateTime.fromSeconds(this.config._nextReceiveTime).toString() + ) + setTimeout(() => this.run(), diff) + } else { + this.logger.log('距离下次领取年度大会员权益的时间超过一天,不计划下次运行') + } + } + } + } else { + const diff = delayToNextMoment(0, 0) + setTimeout(() => this.run(), diff.ms) + this.logger.log('领取年度大会员权益模块下次运行时间:', diff.str) } } } diff --git a/src/modules/dailyTasks/otherTasks/index.ts b/src/modules/dailyTasks/otherTasks/index.ts index f43dbb56..07658f2f 100644 --- a/src/modules/dailyTasks/otherTasks/index.ts +++ b/src/modules/dailyTasks/otherTasks/index.ts @@ -1,3 +1,4 @@ export { default as DailyTask_OtherTask_GroupSignTask } from './groupSignTask' export { default as DailyTask_OtherTask_SilverToCoinTask } from './silverToCoinTask' export { default as DailyTask_OtherTask_CoinToSilverTask } from './coinToSilverTask' +export { default as DailyTask_OtherTask_GetYearVipPrivilegeTask } from './getYearVipPrivilegeTask' From 525befb894a0f312b7ca716d29b58ec61de240a7 Mon Sep 17 00:00:00 2001 From: andywang425 <13120989656@163.com> Date: Thu, 10 Aug 2023 17:32:20 +0800 Subject: [PATCH 06/10] =?UTF-8?q?=F0=9F=90=B3=20chore:=20=E8=A1=A5?= =?UTF-8?q?=E5=85=85=E9=A2=86=E5=8F=96=E5=B9=B4=E5=BA=A6=E5=A4=A7=E4=BC=9A?= =?UTF-8?q?=E5=91=98=E6=9D=83=E7=9B=8A=E7=9A=84=E5=86=85=E7=BD=AE=E8=AF=B4?= =?UTF-8?q?=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/library/help-info/index.ts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/library/help-info/index.ts b/src/library/help-info/index.ts index 2a8eb50b..5f134378 100644 --- a/src/library/help-info/index.ts +++ b/src/library/help-info/index.ts @@ -147,6 +147,25 @@ const help_info: IhelpInfo = { h('div', '把硬币兑换为银瓜子。'), h('div', '具体兑换规则请点击直播间页面的“立即充值→银瓜子商店”查看。') ]) + }, + getYearVipPrivilege: { + title: '领取年度大会员权益', + message: h('p', [ + h('div', '自动领取年度大会员权益。'), + h('div', [ + h('span', '具体权益请前往'), + h( + 'a', + { + href: 'https://account.bilibili.com/account/big/myPackage', + rel: 'noreferrer', + target: '_blank' + }, + '卡券包' + ), + h('span', '查看。') + ]) + ]) } } }, From 7721811e14dbee15031df8d9c09cd4288dbb87f4 Mon Sep 17 00:00:00 2001 From: andywang425 <13120989656@163.com> Date: Thu, 10 Aug 2023 17:39:12 +0800 Subject: [PATCH 07/10] =?UTF-8?q?=F0=9F=90=B3=20chore:=20=E9=A2=86?= =?UTF-8?q?=E5=8F=96=E5=B9=B4=E5=BA=A6=E5=A4=A7=E4=BC=9A=E5=91=98=E6=9D=83?= =?UTF-8?q?=E7=9B=8A=E5=A2=9E=E5=8A=A0=E7=8A=B6=E6=80=81=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/dailyTasks/otherTasks/getYearVipPrivilegeTask.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/modules/dailyTasks/otherTasks/getYearVipPrivilegeTask.ts b/src/modules/dailyTasks/otherTasks/getYearVipPrivilegeTask.ts index 80cdbda1..4fca158b 100644 --- a/src/modules/dailyTasks/otherTasks/getYearVipPrivilegeTask.ts +++ b/src/modules/dailyTasks/otherTasks/getYearVipPrivilegeTask.ts @@ -71,6 +71,7 @@ class GetYearVipPrivilegeTask extends BaseModule { if (this.isYearVip()) { if (ts() >= this.config._nextReceiveTime) { // 当前时间已经超过了上次记录的下次领取时间,领取权益 + this.status = 'running' const list = await this.myPrivilege() if (list) { for (const i of list) { @@ -84,7 +85,9 @@ class GetYearVipPrivilegeTask extends BaseModule { this.logger.warn('发现不属于年度大会员的权益', i) } } + this.status = 'done' this.config._nextReceiveTime = Math.max(...list.map((i) => i.period_end_unix)) + // 此时刚领完,距离下次领取还有一个月,不用计划下次运行 } } else { // 否则等待下次运行或什么都不做 From fe79579920dd1f4b9e6c80c68636207048b002f6 Mon Sep 17 00:00:00 2001 From: andywang425 <13120989656@163.com> Date: Fri, 11 Aug 2023 11:59:39 +0800 Subject: [PATCH 08/10] =?UTF-8?q?=F0=9F=93=83=20docs:=20=E6=9B=B4=E6=96=B0?= =?UTF-8?q?CHANGELOG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f70210f1..2eaed686 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # 更新日志 +## [7.0.7] - 2023-8-11 + +## 新增 + +- 领取年度大会员权益功能 +- + ## [7.0.6] - 2023-8-6 ## 新增 From 9cd971f1844cf0233e846c1cbb6086e22e52c565 Mon Sep 17 00:00:00 2001 From: andywang425 <13120989656@163.com> Date: Fri, 11 Aug 2023 12:00:38 +0800 Subject: [PATCH 09/10] =?UTF-8?q?=F0=9F=90=B3=20chore:=20npm=20update?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package-lock.json | 254 ++++++++++++++++++++++------------------------ package.json | 2 +- 2 files changed, 125 insertions(+), 131 deletions(-) diff --git a/package-lock.json b/package-lock.json index 2dcbd016..a758588e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "bilibili-live-tasks-helper", - "version": "7.0.6", + "version": "7.0.7", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "bilibili-live-tasks-helper", - "version": "7.0.6", + "version": "7.0.7", "dependencies": { "crypto-js": "^4.1.1", "element-plus": "^2.3.7", @@ -47,9 +47,9 @@ } }, "node_modules/@babel/parser": { - "version": "7.22.7", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.22.7.tgz", - "integrity": "sha512-7NF8pOkHP5o2vpmGgNGcfAeCvOYhGLyA3Z4eBQkT1RJlWu47n63bCs93QfJ2hIAFCil7L5P2IWhs1oToVgrL0Q==", + "version": "7.22.10", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.22.10.tgz", + "integrity": "sha512-lNbdGsQb9ekfsnjFGhEiF4hfFqGgfOP3H3d27re3n+CGhNuTSUEQdfWk556sTLNTloczcdM5TYF2LhzmDQKyvQ==", "bin": { "parser": "bin/babel-parser.js" }, @@ -74,9 +74,9 @@ } }, "node_modules/@esbuild/android-arm": { - "version": "0.18.18", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.18.18.tgz", - "integrity": "sha512-oBymf7ZwplAawSxmiSlBCf+FMcY0f4bs5QP2jn43JKUf0M9DnrUTjqa5RvFPl1elw+sMfcpfBRPK+rb+E1q7zg==", + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.18.20.tgz", + "integrity": "sha512-fyi7TDI/ijKKNZTUJAQqiG5T7YjJXgnzkURqmGj13C6dCqckZBLdl4h7bkhHt/t0WP+zO9/zwroDvANaOqO5Sw==", "cpu": [ "arm" ], @@ -90,9 +90,9 @@ } }, "node_modules/@esbuild/android-arm64": { - "version": "0.18.18", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.18.18.tgz", - "integrity": "sha512-dkAPYzRHq3dNXIzOyAknYOzsx8o3KWaNiuu56B2rP9IFPmFWMS58WQcTlUQi6iloku8ZyHHMluCe5sTWhKq/Yw==", + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.18.20.tgz", + "integrity": "sha512-Nz4rJcchGDtENV0eMKUNa6L12zz2zBDXuhj/Vjh18zGqB44Bi7MBMSXjgunJgjRhCmKOjnPuZp4Mb6OKqtMHLQ==", "cpu": [ "arm64" ], @@ -106,9 +106,9 @@ } }, "node_modules/@esbuild/android-x64": { - "version": "0.18.18", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.18.18.tgz", - "integrity": "sha512-r7/pVcrUQMYkjvtE/1/n6BxhWM+/9tvLxDG1ev1ce4z3YsqoxMK9bbOM6bFcj0BowMeGQvOZWcBV182lFFKmrw==", + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.18.20.tgz", + "integrity": "sha512-8GDdlePJA8D6zlZYJV/jnrRAi6rOiNaCC/JclcXpB+KIuvfBN4owLtgzY2bsxnx666XjJx2kDPUmnTtR8qKQUg==", "cpu": [ "x64" ], @@ -122,9 +122,9 @@ } }, "node_modules/@esbuild/darwin-arm64": { - "version": "0.18.18", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.18.18.tgz", - "integrity": "sha512-MSe2iV9MAH3wfP0g+vzN9bp36rtPPuCSk+bT5E2vv/d8krvW5uB/Pi/Q5+txUZuxsG3GcO8dhygjnFq0wJU9hQ==", + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.18.20.tgz", + "integrity": "sha512-bxRHW5kHU38zS2lPTPOyuyTm+S+eobPUnTNkdJEfAddYgEcll4xkT8DB9d2008DtTbl7uJag2HuE5NZAZgnNEA==", "cpu": [ "arm64" ], @@ -138,9 +138,9 @@ } }, "node_modules/@esbuild/darwin-x64": { - "version": "0.18.18", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.18.18.tgz", - "integrity": "sha512-ARFYISOWkaifjcr48YtO70gcDNeOf1H2RnmOj6ip3xHIj66f3dAbhcd5Nph5np6oHI7DhHIcr9MWO18RvUL1bw==", + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.18.20.tgz", + "integrity": "sha512-pc5gxlMDxzm513qPGbCbDukOdsGtKhfxD1zJKXjCCcU7ju50O7MeAZ8c4krSJcOIJGFR+qx21yMMVYwiQvyTyQ==", "cpu": [ "x64" ], @@ -154,9 +154,9 @@ } }, "node_modules/@esbuild/freebsd-arm64": { - "version": "0.18.18", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.18.18.tgz", - "integrity": "sha512-BHnXmexzEWRU2ZySJosU0Ts0NRnJnNrMB6t4EiIaOSel73I8iLsNiTPLH0rJulAh19cYZutsB5XHK6N8fi5eMg==", + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.18.20.tgz", + "integrity": "sha512-yqDQHy4QHevpMAaxhhIwYPMv1NECwOvIpGCZkECn8w2WFHXjEwrBn3CeNIYsibZ/iZEUemj++M26W3cNR5h+Tw==", "cpu": [ "arm64" ], @@ -170,9 +170,9 @@ } }, "node_modules/@esbuild/freebsd-x64": { - "version": "0.18.18", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.18.18.tgz", - "integrity": "sha512-n823w35wm0ZOobbuE//0sJjuz1Qj619+AwjgOcAJMN2pomZhH9BONCtn+KlfrmM/NWZ+27yB/eGVFzUIWLeh3w==", + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.18.20.tgz", + "integrity": "sha512-tgWRPPuQsd3RmBZwarGVHZQvtzfEBOreNuxEMKFcd5DaDn2PbBxfwLcj4+aenoh7ctXcbXmOQIn8HI6mCSw5MQ==", "cpu": [ "x64" ], @@ -186,9 +186,9 @@ } }, "node_modules/@esbuild/linux-arm": { - "version": "0.18.18", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.18.18.tgz", - "integrity": "sha512-Kck3jxPLQU4VeAGwe8Q4NU+IWIx+suULYOFUI9T0C2J1+UQlOHJ08ITN+MaJJ+2youzJOmKmcphH/t3SJxQ1Tw==", + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.18.20.tgz", + "integrity": "sha512-/5bHkMWnq1EgKr1V+Ybz3s1hWXok7mDFUMQ4cG10AfW3wL02PSZi5kFpYKrptDsgb2WAJIvRcDm+qIvXf/apvg==", "cpu": [ "arm" ], @@ -202,9 +202,9 @@ } }, "node_modules/@esbuild/linux-arm64": { - "version": "0.18.18", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.18.18.tgz", - "integrity": "sha512-zANxnwF0sCinDcAqoMohGoWBK9QaFJ65Vgh0ZE+RXtURaMwx+RfmfLElqtnn7X8OYNckMoIXSg7u+tZ3tqTlrA==", + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.18.20.tgz", + "integrity": "sha512-2YbscF+UL7SQAVIpnWvYwM+3LskyDmPhe31pE7/aoTMFKKzIc9lLbyGUpmmb8a8AixOL61sQ/mFh3jEjHYFvdA==", "cpu": [ "arm64" ], @@ -218,9 +218,9 @@ } }, "node_modules/@esbuild/linux-ia32": { - "version": "0.18.18", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.18.18.tgz", - "integrity": "sha512-+VHz2sIRlY5u8IlaLJpdf5TL2kM76yx186pW7bpTB+vLWpzcFQVP04L842ZB2Ty13A1VXUvy3DbU1jV65P2skg==", + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.18.20.tgz", + "integrity": "sha512-P4etWwq6IsReT0E1KHU40bOnzMHoH73aXp96Fs8TIT6z9Hu8G6+0SHSw9i2isWrD2nbx2qo5yUqACgdfVGx7TA==", "cpu": [ "ia32" ], @@ -234,9 +234,9 @@ } }, "node_modules/@esbuild/linux-loong64": { - "version": "0.18.18", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.18.18.tgz", - "integrity": "sha512-fXPEPdeGBvguo/1+Na8OIWz3667BN1cwbGtTEZWTd0qdyTsk5gGf9jVX8MblElbDb/Cpw6y5JiaQuL96YmvBwQ==", + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.18.20.tgz", + "integrity": "sha512-nXW8nqBTrOpDLPgPY9uV+/1DjxoQ7DoB2N8eocyq8I9XuqJ7BiAMDMf9n1xZM9TgW0J8zrquIb/A7s3BJv7rjg==", "cpu": [ "loong64" ], @@ -250,9 +250,9 @@ } }, "node_modules/@esbuild/linux-mips64el": { - "version": "0.18.18", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.18.18.tgz", - "integrity": "sha512-dLvRB87pIBIRnEIC32LIcgwK1JzlIuADIRjLKdUIpxauKwMuS/xMpN+cFl+0nN4RHNYOZ57DmXFFmQAcdlFOmw==", + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.18.20.tgz", + "integrity": "sha512-d5NeaXZcHp8PzYy5VnXV3VSd2D328Zb+9dEq5HE6bw6+N86JVPExrA6O68OPwobntbNJ0pzCpUFZTo3w0GyetQ==", "cpu": [ "mips64el" ], @@ -266,9 +266,9 @@ } }, "node_modules/@esbuild/linux-ppc64": { - "version": "0.18.18", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.18.18.tgz", - "integrity": "sha512-fRChqIJZ7hLkXSKfBLYgsX9Ssb5OGCjk3dzCETF5QSS1qjTgayLv0ALUdJDB9QOh/nbWwp+qfLZU6md4XcjL7w==", + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.18.20.tgz", + "integrity": "sha512-WHPyeScRNcmANnLQkq6AfyXRFr5D6N2sKgkFo2FqguP44Nw2eyDlbTdZwd9GYk98DZG9QItIiTlFLHJHjxP3FA==", "cpu": [ "ppc64" ], @@ -282,9 +282,9 @@ } }, "node_modules/@esbuild/linux-riscv64": { - "version": "0.18.18", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.18.18.tgz", - "integrity": "sha512-ALK/BT3u7Hoa/vHjow6W6+MKF0ohYcVcVA1EpskI4bkBPVuDLrUDqt2YFifg5UcZc8qup0CwQqWmFUd6VMNgaA==", + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.18.20.tgz", + "integrity": "sha512-WSxo6h5ecI5XH34KC7w5veNnKkju3zBRLEQNY7mv5mtBmrP/MjNBCAlsM2u5hDBlS3NGcTQpoBvRzqBcRtpq1A==", "cpu": [ "riscv64" ], @@ -298,9 +298,9 @@ } }, "node_modules/@esbuild/linux-s390x": { - "version": "0.18.18", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.18.18.tgz", - "integrity": "sha512-crT7jtOXd9iirY65B+mJQ6W0HWdNy8dtkZqKGWNcBnunpLcTCfne5y5bKic9bhyYzKpQEsO+C/VBPD8iF0RhRw==", + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.18.20.tgz", + "integrity": "sha512-+8231GMs3mAEth6Ja1iK0a1sQ3ohfcpzpRLH8uuc5/KVDFneH6jtAJLFGafpzpMRO6DzJ6AvXKze9LfFMrIHVQ==", "cpu": [ "s390x" ], @@ -314,9 +314,9 @@ } }, "node_modules/@esbuild/linux-x64": { - "version": "0.18.18", - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.18.18.tgz", - "integrity": "sha512-/NSgghjBOW9ELqjXDYxOCCIsvQUZpvua1/6NdnA9Vnrp9UzEydyDdFXljUjMMS9p5KxMzbMO9frjHYGVHBfCHg==", + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.18.20.tgz", + "integrity": "sha512-UYqiqemphJcNsFEskc73jQ7B9jgwjWrSayxawS6UVFZGWrAAtkzjxSqnoclCXxWtfwLdzU+vTpcNYhpn43uP1w==", "cpu": [ "x64" ], @@ -330,9 +330,9 @@ } }, "node_modules/@esbuild/netbsd-x64": { - "version": "0.18.18", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.18.18.tgz", - "integrity": "sha512-8Otf05Vx5sZjLLDulgr5QS5lsWXMplKZEyHMArH9/S4olLlhzmdhQBPhzhJTNwaL2FJNdWcUPNGAcoD5zDTfUA==", + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.18.20.tgz", + "integrity": "sha512-iO1c++VP6xUBUmltHZoMtCUdPlnPGdBom6IrO4gyKPFFVBKioIImVooR5I83nTew5UOYrk3gIJhbZh8X44y06A==", "cpu": [ "x64" ], @@ -346,9 +346,9 @@ } }, "node_modules/@esbuild/openbsd-x64": { - "version": "0.18.18", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.18.18.tgz", - "integrity": "sha512-tFiFF4kT5L5qhVrWJUNxEXWvvX8nK/UX9ZrB7apuTwY3f6+Xy4aFMBPwAVrBYtBd5MOUuyOVHK6HBZCAHkwUlw==", + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.18.20.tgz", + "integrity": "sha512-e5e4YSsuQfX4cxcygw/UCPIEP6wbIL+se3sxPdCiMbFLBWu0eiZOJ7WoD+ptCLrmjZBK1Wk7I6D/I3NglUGOxg==", "cpu": [ "x64" ], @@ -362,9 +362,9 @@ } }, "node_modules/@esbuild/sunos-x64": { - "version": "0.18.18", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.18.18.tgz", - "integrity": "sha512-MPogVV8Bzh8os4OM+YDGGsSzCzmNRiyKGtHoJyZLtI4BMmd6EcxmGlcEGK1uM46h1BiOyi7Z7teUtzzQhvkC+w==", + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.18.20.tgz", + "integrity": "sha512-kDbFRFp0YpTQVVrqUd5FTYmWo45zGaXe0X8E1G/LKFC0v8x0vWrhOWSLITcCn63lmZIxfOMXtCfti/RxN/0wnQ==", "cpu": [ "x64" ], @@ -378,9 +378,9 @@ } }, "node_modules/@esbuild/win32-arm64": { - "version": "0.18.18", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.18.18.tgz", - "integrity": "sha512-YKD6LF/XXY9REu+ZL5RAsusiG48n602qxsMVh/E8FFD9hp4OyTQaL9fpE1ovxwQXqFio+tT0ITUGjDSSSPN13w==", + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.18.20.tgz", + "integrity": "sha512-ddYFR6ItYgoaq4v4JmQQaAI5s7npztfV4Ag6NrhiaW0RrnOXqBkgwZLofVTlq1daVTQNhtI5oieTvkRPfZrePg==", "cpu": [ "arm64" ], @@ -394,9 +394,9 @@ } }, "node_modules/@esbuild/win32-ia32": { - "version": "0.18.18", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.18.18.tgz", - "integrity": "sha512-NjSBmBsyZBTsZB6ga6rA6PfG/RHnwruUz/9YEVXcm4STGauFWvhYhOMhEyw1yU5NVgYYm8CH5AltCm77TS21/Q==", + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.18.20.tgz", + "integrity": "sha512-Wv7QBi3ID/rROT08SABTS7eV4hX26sVduqDOTe1MvGMjNd3EjOz4b7zeexIR62GTIEKrfJXKL9LFxTYgkyeu7g==", "cpu": [ "ia32" ], @@ -410,9 +410,9 @@ } }, "node_modules/@esbuild/win32-x64": { - "version": "0.18.18", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.18.18.tgz", - "integrity": "sha512-eTSg/gC3p3tdjj4roDhe5xu94l1s2jMazP8u2FsYO8SEKvSpPOO71EucprDn/IuErDPvTFUhV9lTw5z5WJCRKQ==", + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.18.20.tgz", + "integrity": "sha512-kTdfRcSiDfQca/y9QIkng02avJ+NCaQvrMejlsB3RRv5sE9rRoeBPISaZpKxHELzRxZyLvNts1P27W3wV+8geQ==", "cpu": [ "x64" ], @@ -551,9 +551,9 @@ } }, "node_modules/@jridgewell/resolve-uri": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz", - "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==", + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz", + "integrity": "sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==", "dev": true, "engines": { "node": ">=6.0.0" @@ -584,21 +584,15 @@ "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==" }, "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.18", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.18.tgz", - "integrity": "sha512-w+niJYzMHdd7USdiH2U6869nqhD2nbfZXND5Yp93qIbEmnDNk7PD48o+YchRVpzMU7M6jVCbenTR7PA1FLQ9pA==", + "version": "0.3.19", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.19.tgz", + "integrity": "sha512-kf37QtfW+Hwx/buWGMPcR60iF9ziHa6r/CZJIHbmcm4+0qrXiVdxegAH0F6yddEVQ7zdkjcGCgCzUu+BcbhQxw==", "dev": true, "dependencies": { - "@jridgewell/resolve-uri": "3.1.0", - "@jridgewell/sourcemap-codec": "1.4.14" + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" } }, - "node_modules/@jridgewell/trace-mapping/node_modules/@jridgewell/sourcemap-codec": { - "version": "1.4.14", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", - "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==", - "dev": true - }, "node_modules/@nodelib/fs.scandir": { "version": "2.1.5", "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", @@ -665,9 +659,9 @@ } }, "node_modules/@rushstack/eslint-patch": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/@rushstack/eslint-patch/-/eslint-patch-1.3.2.tgz", - "integrity": "sha512-V+MvGwaHH03hYhY+k6Ef/xKd6RYlc4q8WBx+2ANmipHJcKuktNcI/NgEsJgdSUF6Lw32njT6OnrRsKYCdgHjYw==", + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/@rushstack/eslint-patch/-/eslint-patch-1.3.3.tgz", + "integrity": "sha512-0xd7qez0AQ+MbHatZTlI1gu5vkG8r7MYRUJAHPAHJBmGLs16zpkrpAVLvjQKQOqaXPDUBwOiJzNc00znHSCVBw==", "dev": true }, "node_modules/@trysound/sax": { @@ -692,9 +686,9 @@ "dev": true }, "node_modules/@types/lodash": { - "version": "4.14.196", - "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.196.tgz", - "integrity": "sha512-22y3o88f4a94mKljsZcanlNWPzO0uBsBdzLAngf2tp533LzZcQzb6+eZPJ+vCTt+bqF2XnvT9gejTLsAcJAJyQ==" + "version": "4.14.197", + "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.197.tgz", + "integrity": "sha512-BMVOiWs0uNxHVlHBgzTIqJYmj+PgCo4euloGF+5m4okL3rEYzM2EEv78mw8zWSMM57dM7kVIgJ2QDvwHSoCI5g==" }, "node_modules/@types/lodash-es": { "version": "4.17.8", @@ -1795,9 +1789,9 @@ } }, "node_modules/esbuild": { - "version": "0.18.18", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.18.18.tgz", - "integrity": "sha512-UckDPWvdVJLNT0npk5AMTpVwGRQhS76rWFLmHwEtgNvWlR9sgVV1eyc/oeBtM86q9s8ABBLMmm0CwNxhVemOiw==", + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.18.20.tgz", + "integrity": "sha512-ceqxoedUrcayh7Y7ZX6NdbbDzGROiyVBgC4PriJThBKSVPWnnFHZAkfI1lJT8QFkOwH4qOS2SJkS4wvpGl8BpA==", "dev": true, "hasInstallScript": true, "bin": { @@ -1807,28 +1801,28 @@ "node": ">=12" }, "optionalDependencies": { - "@esbuild/android-arm": "0.18.18", - "@esbuild/android-arm64": "0.18.18", - "@esbuild/android-x64": "0.18.18", - "@esbuild/darwin-arm64": "0.18.18", - "@esbuild/darwin-x64": "0.18.18", - "@esbuild/freebsd-arm64": "0.18.18", - "@esbuild/freebsd-x64": "0.18.18", - "@esbuild/linux-arm": "0.18.18", - "@esbuild/linux-arm64": "0.18.18", - "@esbuild/linux-ia32": "0.18.18", - "@esbuild/linux-loong64": "0.18.18", - "@esbuild/linux-mips64el": "0.18.18", - "@esbuild/linux-ppc64": "0.18.18", - "@esbuild/linux-riscv64": "0.18.18", - "@esbuild/linux-s390x": "0.18.18", - "@esbuild/linux-x64": "0.18.18", - "@esbuild/netbsd-x64": "0.18.18", - "@esbuild/openbsd-x64": "0.18.18", - "@esbuild/sunos-x64": "0.18.18", - "@esbuild/win32-arm64": "0.18.18", - "@esbuild/win32-ia32": "0.18.18", - "@esbuild/win32-x64": "0.18.18" + "@esbuild/android-arm": "0.18.20", + "@esbuild/android-arm64": "0.18.20", + "@esbuild/android-x64": "0.18.20", + "@esbuild/darwin-arm64": "0.18.20", + "@esbuild/darwin-x64": "0.18.20", + "@esbuild/freebsd-arm64": "0.18.20", + "@esbuild/freebsd-x64": "0.18.20", + "@esbuild/linux-arm": "0.18.20", + "@esbuild/linux-arm64": "0.18.20", + "@esbuild/linux-ia32": "0.18.20", + "@esbuild/linux-loong64": "0.18.20", + "@esbuild/linux-mips64el": "0.18.20", + "@esbuild/linux-ppc64": "0.18.20", + "@esbuild/linux-riscv64": "0.18.20", + "@esbuild/linux-s390x": "0.18.20", + "@esbuild/linux-x64": "0.18.20", + "@esbuild/netbsd-x64": "0.18.20", + "@esbuild/openbsd-x64": "0.18.20", + "@esbuild/sunos-x64": "0.18.20", + "@esbuild/win32-arm64": "0.18.20", + "@esbuild/win32-ia32": "0.18.20", + "@esbuild/win32-x64": "0.18.20" } }, "node_modules/escape-html": { @@ -1944,9 +1938,9 @@ } }, "node_modules/eslint-plugin-vue": { - "version": "9.16.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-vue/-/eslint-plugin-vue-9.16.1.tgz", - "integrity": "sha512-2FtnTqazA6aYONfDuOZTk0QzwhAwi7Z4+uJ7+GHeGxcKapjqWlDsRWDenvyG/utyOfAS5bVRmAG3cEWiYEz2bA==", + "version": "9.17.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-vue/-/eslint-plugin-vue-9.17.0.tgz", + "integrity": "sha512-r7Bp79pxQk9I5XDP0k2dpUC7Ots3OSWgvGZNu3BxmKK6Zg7NgVtcOB6OCna5Kb9oQwJPl5hq183WD0SY5tZtIQ==", "dev": true, "dependencies": { "@eslint-community/eslint-utils": "^4.4.0", @@ -2661,9 +2655,9 @@ } }, "node_modules/luxon": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/luxon/-/luxon-3.3.0.tgz", - "integrity": "sha512-An0UCfG/rSiqtAIiBPO0Y9/zAnHUZxAMiCpTd5h2smgsj7GGmcenvrvww2cqNA8/4A5ZrD1gJpHN2mIHZQF+Mg==", + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/luxon/-/luxon-3.4.0.tgz", + "integrity": "sha512-7eDo4Pt7aGhoCheGFIuq4Xa2fJm4ZpmldpGhjTYBNUYNCN6TIEP6v7chwwwt3KRp7YR+rghbfvjyo3V5y9hgBw==", "engines": { "node": ">=12" } @@ -3185,9 +3179,9 @@ } }, "node_modules/rollup": { - "version": "3.27.2", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-3.27.2.tgz", - "integrity": "sha512-YGwmHf7h2oUHkVBT248x0yt6vZkYQ3/rvE5iQuVBh3WO8GcJ6BNeOkpoX1yMHIiBm18EMLjBPIoUDkhgnyxGOQ==", + "version": "3.28.0", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-3.28.0.tgz", + "integrity": "sha512-d7zhvo1OUY2SXSM6pfNjgD5+d0Nz87CUp4mt8l/GgVP3oBsPwzNvSzyu1me6BSG9JIgWNTVcafIXBIyM8yQ3yw==", "dev": true, "bin": { "rollup": "dist/bin/rollup" @@ -3642,14 +3636,14 @@ "dev": true }, "node_modules/vite": { - "version": "4.4.8", - "resolved": "https://registry.npmjs.org/vite/-/vite-4.4.8.tgz", - "integrity": "sha512-LONawOUUjxQridNWGQlNizfKH89qPigK36XhMI7COMGztz8KNY0JHim7/xDd71CZwGT4HtSRgI7Hy+RlhG0Gvg==", + "version": "4.4.9", + "resolved": "https://registry.npmjs.org/vite/-/vite-4.4.9.tgz", + "integrity": "sha512-2mbUn2LlUmNASWwSCNSJ/EG2HuSRTnVNaydp6vMCm5VIqJsjMfbIWtbH2kDuwUVW5mMUKKZvGPX/rqeqVvv1XA==", "dev": true, "dependencies": { "esbuild": "^0.18.10", - "postcss": "^8.4.26", - "rollup": "^3.25.2" + "postcss": "^8.4.27", + "rollup": "^3.27.1" }, "bin": { "vite": "bin/vite.js" diff --git a/package.json b/package.json index e07c6edb..8d5996bb 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "bilibili-live-tasks-helper", "private": true, - "version": "7.0.6", + "version": "7.0.7", "type": "module", "scripts": { "dev": "vite", From af97cedc6329385be5d35d384165d5a5589d42ae Mon Sep 17 00:00:00 2001 From: andywang425 <13120989656@163.com> Date: Fri, 11 Aug 2023 12:01:52 +0800 Subject: [PATCH 10/10] =?UTF-8?q?=F0=9F=93=83=20docs:=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 1 - 1 file changed, 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2eaed686..9434b95e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,6 @@ ## 新增 - 领取年度大会员权益功能 -- ## [7.0.6] - 2023-8-6