Skip to content

Commit

Permalink
feat: 新增 DNF落地页活动_ide 活动
Browse files Browse the repository at this point in the history
  • Loading branch information
fzls committed Sep 12, 2024
1 parent a73d2f5 commit 70b3903
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion config_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -2937,6 +2937,7 @@ class FunctionSwitchesConfigUi(QWidget):
("DNF神界成长之路", "get_dnf_shenjie_grow_up"),
("colg其他活动", "get_colg_other_act"),
("colg每日签到", "get_colg_signin"),
("DNF落地页活动", "get_dnf_luodiye"),
],
"QQ空间pskey": [
("集卡", "get_ark_lottery"),
Expand All @@ -2952,7 +2953,6 @@ class FunctionSwitchesConfigUi(QWidget):
("DNF格斗大赛", "get_dnf_pk"),
("DNF卡妮娜的心愿摇奖机", "get_dnf_kanina"),
("DNF周年庆登录活动", "get_dnf_anniversary"),
("DNF落地页活动", "get_dnf_luodiye"),
("DNF福利中心兑换", "get_dnf_welfare"),
("DNFxSNK", "get_dnf_snk"),
("9163补偿", "get_dnf_9163_apologize"),
Expand Down
26 changes: 13 additions & 13 deletions djc_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -680,6 +680,7 @@ def payed_activities(self) -> list[tuple[str, Callable]]:
("colg每日签到", self.colg_signin),
("集卡", self.dnf_ark_lottery),
("超级会员", self.dnf_super_vip),
("DNF落地页活动_ide", self.dnf_luodiye_ide),
]

def expired_activities(self) -> list[tuple[str, Callable]]:
Expand All @@ -692,7 +693,6 @@ def expired_activities(self) -> list[tuple[str, Callable]]:
("DNF格斗大赛", self.dnf_pk),
("DNF卡妮娜的心愿摇奖机", self.dnf_kanina),
("DNF周年庆登录活动", self.dnf_anniversary),
("DNF落地页活动_ide", self.dnf_luodiye_ide),
("DNF福利中心兑换", self.dnf_welfare),
("DNF落地页活动_ide_dup", self.dnf_luodiye_ide_dup),
("DNFxSNK", self.dnf_snk),
Expand Down Expand Up @@ -6047,21 +6047,21 @@ def dnf_luodiye_ide(self):
self.check_dnf_luodiye_ide()

def query_info() -> tuple[int, int]:
res = self.dnf_luodiye_ide_op("初始化", "295037", print_res=False)
res = self.dnf_luodiye_ide_op("初始化", "323006", print_res=False)
raw_info = res["jData"]

# 抽奖次数
iLottery = int(raw_info["iLottery"])

# 累计登录天数
iLoginTotal = int(raw_info["iLoginTotal"])
iLoginTotal = int(raw_info["iCumulative"])

return iLottery, iLoginTotal

# ------------ 实际流程 --------------
self.dnf_luodiye_ide_op("周年礼包", "295043")
self.dnf_luodiye_ide_op("见面礼", "323090")

self.dnf_luodiye_ide_op("每日登录礼包", "295044")
self.dnf_luodiye_ide_op("每日登录", "323145")

login_gifts_list = [
(1, 3),
Expand All @@ -6076,15 +6076,15 @@ def query_info() -> tuple[int, int]:
logger.info(f"累计登录天数为 {iLoginTotal}")
for gift_index, require_login_days in login_gifts_list:
if iLoginTotal >= require_login_days:
self.dnf_luodiye_ide_op(f"[{gift_index}] 累计登录{require_login_days}天礼包", "295045", num=gift_index)
self.dnf_luodiye_ide_op(f"[{gift_index}] 累计登录{require_login_days}天礼包", "323147", iIndex=gift_index)
else:
logger.warning(f"[{gift_index}] 当前累计登录未达到{require_login_days}天,将不尝试领取该累计奖励")

tasks = [
("每日任务一", "295085"),
("每日任务二", "295089"),
("每周任务一", "295113"),
("每周任务二", "295150"),
("每日任务一", "323318"),
("每日任务二", "323319"),
("每周任务一", "323320"),
("每周任务二", "323321"),
]
for name, flowid in tasks:
self.dnf_luodiye_ide_op(name, flowid)
Expand All @@ -6104,15 +6104,15 @@ def query_info() -> tuple[int, int]:
iLottery, _ = query_info()
logger.info(f"当前抽奖次数为 {iLottery}")
for idx in range_from_one(iLottery):
res = self.dnf_luodiye_ide_op(f"{idx}/{iLottery} 抽奖", "295154")
res = self.dnf_luodiye_ide_op(f"{idx}/{iLottery} 抽奖", "323323")
_ = res
# if res["ret"] == 10001:
# break
time.sleep(5)

async_message_box(
"落地页活动页面有个拉回归的活动,拉四个可以换一个红10增幅券,有兴趣的请自行完成~(每天只能拉一个,至少需要分四天)",
"24.6 落地页拉回归活动",
"24.9 落地页拉回归活动",
show_once=True,
open_url=get_act_url("DNF落地页活动_ide"),
)
Expand Down Expand Up @@ -8729,6 +8729,6 @@ def fake_djc_helper() -> DjcHelper:
djcHelper.get_bind_role_list()

# djcHelper.dnf_kol()
djcHelper.dnf_super_vip()
djcHelper.dnf_luodiye_ide()

pause()
8 changes: 4 additions & 4 deletions urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ def newNotAmsActInfo(dtBeginTime: str, dtEndTime: str, sActivityName: str) -> Am
newNotAmsActInfo("2024-09-12 00:00:00", "2024-10-31 23:59:59", "colg每日签到"),
newNotAmsActInfo("2024-09-12 00:00:00", "2024-10-11 23:59:59", "集卡"),
newNotAmsActInfo("2024-09-12 00:00:00", "2024-10-11 23:59:59", "超级会员"),
newNotAmsActInfo("2024-09-12 00:00:00", "2024-10-13 23:59:59", "DNF落地页活动_ide"),
#
# 已过期活动
#
Expand All @@ -75,7 +76,6 @@ def newNotAmsActInfo(dtBeginTime: str, dtEndTime: str, sActivityName: str) -> Am
newNotAmsActInfo("2024-06-20 00:00:00", "2024-07-10 23:59:59", "DNF格斗大赛"),
newNotAmsActInfo("2024-06-13 00:00:00", "2024-07-10 23:59:59", "DNF卡妮娜的心愿摇奖机"),
newNotAmsActInfo("2024-06-13 00:00:00", "2024-07-04 23:59:59", "DNF周年庆登录活动"),
newNotAmsActInfo("2024-06-13 09:55:00", "2024-07-12 23:59:59", "DNF落地页活动_ide"),
newNotAmsActInfo("2023-11-16 00:00:00", "2023-12-19 23:59:59", "qq视频蚊子腿-爱玩"),
newNotAmsActInfo("2023-12-21 00:00:00", "2024-01-24 23:59:59", "DNF马杰洛的规划"),
newNotAmsActInfo("2024-01-11 10:00:00", "2024-02-20 23:59:59", "DNF心悦wpe"),
Expand Down Expand Up @@ -107,6 +107,7 @@ def newNotAmsActInfo(dtBeginTime: str, dtEndTime: str, sActivityName: str) -> Am
"colg每日签到": "https://bbs.colg.cn/forum-171-1.html",
"集卡": "https://act.qzone.qq.com/v2/vip/tx/p/50965_510d3610",
"超级会员": "https://act.qzone.qq.com/v2/vip/tx/p/50997_88a8aab7",
"DNF落地页活动_ide": "https://dnf.qq.com/cp/a20240912index/index.html",
#
# 已过期活动
#
Expand All @@ -115,7 +116,6 @@ def newNotAmsActInfo(dtBeginTime: str, dtEndTime: str, sActivityName: str) -> Am
"DNF格斗大赛": "https://act.xinyue.qq.com/act/a20240613dnfcombat/index.html",
"DNF卡妮娜的心愿摇奖机": "https://dnf.qq.com/cp/a20240613wish/indexm.html",
"DNF周年庆登录活动": "https://dnf.qq.com/cp/a20240613celebration/",
"DNF落地页活动_ide": "https://dnf.qq.com/act/a20240613index/index.html",
"DNF福利中心兑换": "https://dnf.qq.com/cp/a20190312welfare/index.htm",
"DNF落地页活动_ide_dup": "https://dnf.qq.com/act/a20240418index/index.html",
"DNFxSNK": "https://dnf.qq.com/cp/a20240418snklink/indexm.html",
Expand Down Expand Up @@ -223,7 +223,7 @@ def __init__(self):
self.ide_default_params_list = [
"iChartId", "iSubChartId", "sIdeToken", "sRoleId", "sRoleName", "sArea", "sMd5str", "sCheckparam", "roleJob", "sAreaName", "sAuthInfo", "sActivityInfo", "openid", "sCode", "startPos",
"eas_url", "eas_refer", "iType", "iPage", "type", "sUin", "dayNum", "iFarmland", "fieldId", "sRice", "packageId", "targetId", "myId", "id", "iCardId", "iAreaId", "sRole", "drinksId",
"gameId", "score", "loginDays", "iSuccess", "iGameId", "sAnswer", "index", "u_stage", "u_task_index", "u_stage_index", "num", "sPartition", "sPlatId", "source",
"gameId", "score", "loginDays", "iSuccess", "iGameId", "sAnswer", "index", "u_stage", "u_task_index", "u_stage_index", "num", "sPartition", "sPlatId", "source", "iIndex",
]
# 其他默认填充的空参数
self.other_default_empty_params_list = [
Expand Down Expand Up @@ -278,7 +278,7 @@ def __init__(self):
self.ide_iActivityId_dnf_social_relation_permission = "14_uK7KKe" # DNF关系链接-用户授权接口
self.ide_iActivityId_dnf_anniversary = "15_s0hJrQ" # DNF周年庆登录活动
self.ide_iActivityId_dnf_game = "64_Yetu1m" # dnf娱乐赛
self.ide_iActivityId_dnf_luodiye = "61_TpRquT" # DNF落地页
self.ide_iActivityId_dnf_luodiye = "62_jr3nPf" # DNF落地页
self.ide_iActivityId_dnf_luodiye_dup = "16_FDvprx" # DNF落地页dup
self.ide_iActivityId_dnf_comic = "64_p5cLkZ" # DNF漫画预约活动
self.ide_iActivityId_dnf_save_sailiyam = "35_w7UB7L" # 拯救赛利亚
Expand Down

0 comments on commit 70b3903

Please sign in to comment.