feat: get/check coin

Closes #661

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-11 17:20:25 +08:00
parent 9a6ba82467
commit 3801bdf9d7
12 changed files with 235 additions and 225 deletions

View File

@@ -3,6 +3,14 @@ class GlobalData {
int replyLengthLimit = 6;
num? coins;
void afterCoin(int coin) {
if (coins != null) {
coins = coins! - coin;
}
}
// 私有构造函数
GlobalData._();