From ea42588b10941aa994f6b75aec04911340cec4e4 Mon Sep 17 00:00:00 2001 From: xtaodada Date: Wed, 18 Dec 2024 00:00:41 +0800 Subject: [PATCH] :bug: Fix jobs support player_id --- plugins/tools/cloud_game.py | 3 ++- plugins/tools/sign.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/tools/cloud_game.py b/plugins/tools/cloud_game.py index 8592923..c5a2f71 100644 --- a/plugins/tools/cloud_game.py +++ b/plugins/tools/cloud_game.py @@ -125,8 +125,9 @@ class CloudGameHelper(Plugin): if sign_db.status not in include_status: continue user_id = sign_db.user_id + player_id = sign_db.player_id try: - async with self.client(user_id) as client: + async with self.client(user_id, player_id=player_id) as client: text = await self.start_sign(client, is_raise=True, title=title) except InvalidCookies: text = "云游戏自动签到执行失败,Cookie无效" diff --git a/plugins/tools/sign.py b/plugins/tools/sign.py index 0575c90..3d2ccd1 100644 --- a/plugins/tools/sign.py +++ b/plugins/tools/sign.py @@ -242,8 +242,9 @@ class SignSystem(Plugin): if sign_db.status not in include_status: continue user_id = sign_db.user_id + player_id = sign_db.player_id try: - async with self.genshin_helper.genshin(user_id) as client: + async with self.genshin_helper.genshin(user_id, player_id=player_id) as client: text = await self.start_sign(client, is_sleep=True, is_raise=True, title=title) except InvalidCookies: text = "自动签到执行失败,Cookie无效"