mirror of
https://github.com/shanmiteko/LotteryAutoScript.git
synced 2026-06-04 21:01:17 +08:00
parent
73f04a357a
commit
03e24b9b84
@ -373,6 +373,15 @@ class Monitor extends Searcher {
|
||||
return false
|
||||
}
|
||||
|
||||
if (reserve_id) {
|
||||
log.info("预约抽奖", "开始");
|
||||
if (hasEnv('NOT_GO_LOTTERY')) {
|
||||
log.info('NOT_GO_LOTTERY', 'ON');
|
||||
} else {
|
||||
await bili.reserve_lottery(reserve_id)
|
||||
}
|
||||
}
|
||||
|
||||
if (!has_key_words && description) {
|
||||
log.warn("筛选动态", `无关键词动态的描述: ${description}\n\n考虑是否修改设置key_words:\n${key_words.join('\n')}`)
|
||||
return false
|
||||
@ -405,10 +414,6 @@ class Monitor extends Searcher {
|
||||
return false
|
||||
}
|
||||
|
||||
if (reserve_id) {
|
||||
await bili.reserve_lottery(reserve_id)
|
||||
}
|
||||
|
||||
if (isLottery) {
|
||||
const { uname_map = {} } = global_var.get("remoteconfig")
|
||||
let onelotteryinfo = {};
|
||||
|
||||
@ -57,6 +57,7 @@ function parseDynamicCard(dynamic_detail_card) {
|
||||
, { is_liked = 1, user_profile = {} } = desc
|
||||
, { info = {} } = user_profile
|
||||
, extendjsonToJson = strToJson(extend_json)
|
||||
, extendjsonToJsonHidden = extendjsonToJson[""] || {}
|
||||
, cardToJson = strToJson(card)
|
||||
, { item } = cardToJson;
|
||||
/* 转发者的UID */
|
||||
@ -78,8 +79,8 @@ function parseDynamicCard(dynamic_detail_card) {
|
||||
/* 定位@信息 */
|
||||
obj.ctrl = (extendjsonToJson.ctrl) || [];
|
||||
/* 预约抽奖信息 */
|
||||
if (extendjsonToJson.reserve) {
|
||||
let { reserve_id, reserve_lottery } = extendjsonToJson.reserve;
|
||||
if (extendjsonToJsonHidden.reserve) {
|
||||
let { reserve_id, reserve_lottery } = extendjsonToJsonHidden.reserve;
|
||||
obj.reserve_id = reserve_lottery === 1 ? reserve_id : 0;
|
||||
}
|
||||
/* 是否有官方抽奖 */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user