From 3a6e0f7fd5a9957e75d10ddb9adc0a83f30969b1 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 8592923c..c5a2f717 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 d7559289..a03dfd58 100644 --- a/plugins/tools/sign.py +++ b/plugins/tools/sign.py @@ -246,8 +246,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无效"