mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-12-26 19:35:37 +00:00
🐛 Fix cloud game sign twice
This commit is contained in:
parent
245e95784d
commit
9caacc73c9
@ -87,16 +87,14 @@ class CloudGameHelper(Plugin):
|
|||||||
await self.clear_notification(client)
|
await self.clear_notification(client)
|
||||||
except Exception:
|
except Exception:
|
||||||
logger.warning("UID[%s] 清空云游戏通知失败", client.player_id)
|
logger.warning("UID[%s] 清空云游戏通知失败", client.player_id)
|
||||||
send_free_time = wallet.free_time.send_freetime
|
|
||||||
have_free_time = wallet.free_time.free_time
|
have_free_time = wallet.free_time.free_time
|
||||||
if send_free_time:
|
limit_time = wallet.free_time.free_time_limit
|
||||||
logger.success("UID[%s] 云游戏签到成功", client.player_id)
|
if have_free_time == limit_time:
|
||||||
result = f"获得 {send_free_time} 分钟免费时长"
|
logger.success("UID[%s] 云游戏签到超出免费时长上限", client.player_id)
|
||||||
|
result = "超出免费时长上限"
|
||||||
else:
|
else:
|
||||||
logger.info("UID[%s] 云游戏已经签到", client.player_id)
|
logger.success("UID[%s] 云游戏签到成功", client.player_id)
|
||||||
result = "今天旅行者云游戏已经签到过了~"
|
result = "OK"
|
||||||
if is_raise:
|
|
||||||
raise AlreadyClaimed
|
|
||||||
today = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())
|
today = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())
|
||||||
message = (
|
message = (
|
||||||
f"#### {title} ####\n"
|
f"#### {title} ####\n"
|
||||||
|
Loading…
Reference in New Issue
Block a user