mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-12-27 11:49:04 +00:00
🐛 Fix jobs support player_id
This commit is contained in:
parent
3a588adf64
commit
3a6e0f7fd5
@ -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无效"
|
||||||
|
@ -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无效"
|
||||||
|
Loading…
Reference in New Issue
Block a user