mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
20 lines
417 B
Dart
20 lines
417 B
Dart
import 'package:PiliPalaX/http/user.dart';
|
|
|
|
import 'storage.dart';
|
|
|
|
class Data {
|
|
static Future init() async {
|
|
await historyStatus();
|
|
}
|
|
|
|
static Future historyStatus() async {
|
|
if (GStorage.userInfo.get('userInfoCache') == null) {
|
|
return;
|
|
}
|
|
var res = await UserHttp.historyStatus();
|
|
if (res['status']) {
|
|
GStorage.localCache.put(LocalCacheKey.historyPause, res['data']);
|
|
}
|
|
}
|
|
}
|