From 68b6c78551c01c99a2320ab21a773a9684f86c55 Mon Sep 17 00:00:00 2001 From: Guang_Chen_ <75193557+GuangChen2333@users.noreply.github.com> Date: Sun, 15 Sep 2024 11:11:07 +0800 Subject: [PATCH] chore: update wallet data (#23) --- pyproject.toml | 2 +- src/mhyy/_wallet.py | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 93572a4..f4d2eae 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "mhyy.py" -version = "2.1.1" +version = "2.1.2" authors = [ { name = "GuangChen2333", email = "guangchenworks@outlook.com" }, ] diff --git a/src/mhyy/_wallet.py b/src/mhyy/_wallet.py index 657ddf2..17eac0b 100644 --- a/src/mhyy/_wallet.py +++ b/src/mhyy/_wallet.py @@ -70,11 +70,13 @@ class PlayCardData: msg (str): 畅玩卡信息 short_msg (str): 畅玩卡短信息 / 状态 play_card_limit (str): 未知 + remaining_sec (str): 未知 """ expire: str msg: str short_msg: str play_card_limit: str + remaining_sec: str @dataclass_json @@ -89,12 +91,15 @@ class WalletData: status (StatusData): 未知。 stat (StatData): 未知。 play_card (PlayCardData): 畅玩卡数据。 + total_time (int): 总时长。 """ + coin: CoinData free_time: FreeTimeData status: StatusData stat: StatData play_card: PlayCardData + total_time: int def is_sign_in(self) -> bool: """