mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: checkUpdate
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -813,7 +813,11 @@ class Utils {
|
||||
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) {
|
||||
if (current.compareTo(latest) >= 0) {
|
||||
if (isAuto.not) {
|
||||
SmartDialog.showToast('已是最新版本');
|
||||
}
|
||||
} else {
|
||||
SmartDialog.show(
|
||||
animationType: SmartAnimationType.centerFade_otherSlide,
|
||||
builder: (context) {
|
||||
|
||||
Reference in New Issue
Block a user