mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-22 10:06:23 +08:00
feat: get/check coin
Closes #661 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -177,7 +177,8 @@ class AccountManager extends Interceptor {
|
||||
'online/total',
|
||||
'github',
|
||||
'hdslb.com',
|
||||
'biliimg.com'
|
||||
'biliimg.com',
|
||||
'site/getCoin',
|
||||
];
|
||||
String url = err.requestOptions.uri.toString();
|
||||
debugPrint('🌹🌹ApiInterceptor: $url');
|
||||
|
||||
@@ -3,6 +3,14 @@ class GlobalData {
|
||||
|
||||
int replyLengthLimit = 6;
|
||||
|
||||
num? coins;
|
||||
|
||||
void afterCoin(int coin) {
|
||||
if (coins != null) {
|
||||
coins = coins! - coin;
|
||||
}
|
||||
}
|
||||
|
||||
// 私有构造函数
|
||||
GlobalData._();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user