🔨:refactor: 优化浇水爆米花任务执行流程
- 移除了硬编码的 Hykb_cookie,改用环境变量动态获取 - 在执行小游戏任务后增加了 10 秒的等待时间,提高任务成功率
This commit is contained in:
parent
17269d8719
commit
9cd05c406b
@ -21,12 +21,7 @@ from bs4 import BeautifulSoup
|
|||||||
from fn_print import fn_print
|
from fn_print import fn_print
|
||||||
from sendNotify import send_notification_message_collection
|
from sendNotify import send_notification_message_collection
|
||||||
|
|
||||||
os.environ[
|
|
||||||
"Hykb_cookie"] = (
|
|
||||||
"1|0|128421985|5b+r54iG55So5oi3MTI4NDIxOTg1|kbA25014349F11473F467DC6FF5C89E9D6|plcAoJ6jITDlGvEnGl80IlfuoREWIlVjITZOpv6U7WI=%1|5312899df0a922f9707df9a5ad8dee37"
|
|
||||||
"@1|0|144108620|5b+r54iG55So5oi3MTQ0MTA4NjIw|kbA25014349F11473F467DC6FF5C89E9D6|plulIJGcoRZw7T7AGl6A7W9iGJDr7TpfovIj7j5fGiV=%1|d19c657cc9f8b0f4e029088db23a75d3"
|
|
||||||
# "@4|0|16821765|5Lyx5aS05Y+R5Lmx5LqG5ZOm|kb260B6ED0E811505B83077671ACBDBDF8|7l8A7TIWpJVyIiGfIjafpiGr7iIWGR6woT6AGlDu7jb=%1|2a9515db5d2d5392a7ad138c400bb287"
|
|
||||||
)
|
|
||||||
if 'Hykb_cookie' in os.environ:
|
if 'Hykb_cookie' in os.environ:
|
||||||
Hykb_cookie = re.split("@", os.environ.get("Hykb_cookie"))
|
Hykb_cookie = re.split("@", os.environ.get("Hykb_cookie"))
|
||||||
else:
|
else:
|
||||||
@ -384,6 +379,7 @@ class HaoYouKuaiBao:
|
|||||||
:return:
|
:return:
|
||||||
"""
|
"""
|
||||||
await self.do_small_game_task(recommend_task)
|
await self.do_small_game_task(recommend_task)
|
||||||
|
await asyncio.sleep(10)
|
||||||
await self.receive_small_game_reward(recommend_task)
|
await self.receive_small_game_reward(recommend_task)
|
||||||
|
|
||||||
async def run_task(self):
|
async def run_task(self):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user