mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-20 17:16:29 +08:00
opt buildTime
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -23,10 +23,10 @@ class Update {
|
||||
}
|
||||
return;
|
||||
}
|
||||
DateTime latest = DateTime.parse(res.data[0]['created_at']);
|
||||
DateTime current = DateTime.parse('${BuildConfig.buildTime}Z');
|
||||
current = current.copyWith(hour: current.hour - 8);
|
||||
if (current.compareTo(latest) >= 0) {
|
||||
int latest =
|
||||
DateTime.parse(res.data[0]['created_at']).millisecondsSinceEpoch ~/
|
||||
1000;
|
||||
if (BuildConfig.buildTime >= latest) {
|
||||
if (!isAuto) {
|
||||
SmartDialog.showToast('已是最新版本');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user