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 latest = DateTime.parse(res.data[0]['created_at']);
|
||||||
DateTime current = DateTime.parse('${BuildConfig.buildTime}Z');
|
DateTime current = DateTime.parse('${BuildConfig.buildTime}Z');
|
||||||
current = current.copyWith(hour: current.hour - 8);
|
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(
|
SmartDialog.show(
|
||||||
animationType: SmartAnimationType.centerFade_otherSlide,
|
animationType: SmartAnimationType.centerFade_otherSlide,
|
||||||
builder: (context) {
|
builder: (context) {
|
||||||
|
|||||||
Reference in New Issue
Block a user