🐛 Fix jobs support player_id

This commit is contained in:
xtaodada 2024-12-18 00:00:41 +08:00
parent 3a588adf64
commit 3a6e0f7fd5
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659
2 changed files with 4 additions and 2 deletions

View File

@ -125,8 +125,9 @@ class CloudGameHelper(Plugin):
if sign_db.status not in include_status: if sign_db.status not in include_status:
continue continue
user_id = sign_db.user_id user_id = sign_db.user_id
player_id = sign_db.player_id
try: 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) text = await self.start_sign(client, is_raise=True, title=title)
except InvalidCookies: except InvalidCookies:
text = "云游戏自动签到执行失败Cookie无效" text = "云游戏自动签到执行失败Cookie无效"

View File

@ -246,8 +246,9 @@ class SignSystem(Plugin):
if sign_db.status not in include_status: if sign_db.status not in include_status:
continue continue
user_id = sign_db.user_id user_id = sign_db.user_id
player_id = sign_db.player_id
try: 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) text = await self.start_sign(client, is_sleep=True, is_raise=True, title=title)
except InvalidCookies: except InvalidCookies:
text = "自动签到执行失败Cookie无效" text = "自动签到执行失败Cookie无效"