mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2026-02-19 06:34:55 +01:00
fix: restore logic
This commit is contained in:
@@ -89,7 +89,7 @@ class Backup {
|
||||
Future<bool?> restore({bool force = false}) async {
|
||||
final curTime = Stores.lastModTime ?? 0;
|
||||
final bakTime = lastModTime ?? 0;
|
||||
if (curTime == bakTime) {
|
||||
if (curTime == bakTime && !force) {
|
||||
return null;
|
||||
}
|
||||
if (curTime > bakTime && !force) {
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
|
||||
class BuildData {
|
||||
static const String name = "ServerBox";
|
||||
static const int build = 701;
|
||||
static const String engine = "3.16.5";
|
||||
static const String buildAt = "2024-01-06 13:39:30";
|
||||
static const int modifications = 1;
|
||||
static const int build = 702;
|
||||
static const String engine = "3.16.6";
|
||||
static const String buildAt = "2024-01-11 21:40:36";
|
||||
static const int modifications = 3;
|
||||
static const int script = 34;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user