mirror of
https://github.com/shanmiteko/LotteryAutoScript.git
synced 2026-06-04 21:01:17 +08:00
fix: 预约验重(#158)
This commit is contained in:
parent
784f148d75
commit
4238ee50a6
@ -80,8 +80,17 @@ function parseDynamicCard(dynamic_detail_card) {
|
|||||||
obj.ctrl = (extendjsonToJson.ctrl) || [];
|
obj.ctrl = (extendjsonToJson.ctrl) || [];
|
||||||
/* 预约抽奖信息 */
|
/* 预约抽奖信息 */
|
||||||
if (extendjsonToJsonHidden.reserve) {
|
if (extendjsonToJsonHidden.reserve) {
|
||||||
let { reserve_id, reserve_lottery } = extendjsonToJsonHidden.reserve;
|
let status = (((dynamic_detail_card || {})
|
||||||
obj.reserve_id = reserve_lottery === 1 ? reserve_id : 0;
|
.display || {})
|
||||||
|
.add_on_card_info || [])
|
||||||
|
.map(it => (((it || {})
|
||||||
|
.reserve_attach_card || {})
|
||||||
|
.reserve_button || {})
|
||||||
|
.status || 2)[0];
|
||||||
|
if (status === 1) {
|
||||||
|
let { reserve_id } = extendjsonToJsonHidden.reserve;
|
||||||
|
obj.reserve_id = reserve_id || 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
/* 是否有官方抽奖 */
|
/* 是否有官方抽奖 */
|
||||||
obj.hasOfficialLottery = extension && extension.lott && true;
|
obj.hasOfficialLottery = extension && extension.lott && true;
|
||||||
|
|||||||
@ -837,6 +837,9 @@ const bili_client = {
|
|||||||
case 0:
|
case 0:
|
||||||
log.info('预约抽奖', '预约成功');
|
log.info('预约抽奖', '预约成功');
|
||||||
return 0;
|
return 0;
|
||||||
|
case 7604003:
|
||||||
|
log.warn('预约抽奖', '重复预约');
|
||||||
|
return 0;
|
||||||
default:
|
default:
|
||||||
log.error('预约抽奖', `未知错误\n${responseText}`);
|
log.error('预约抽奖', `未知错误\n${responseText}`);
|
||||||
return 1;
|
return 1;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user