fix: restore logic

This commit is contained in:
lollipopkit
2024-01-14 18:50:25 +08:00
parent 460f3f957e
commit 11dca4c37c
5 changed files with 30 additions and 23 deletions

View File

@@ -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) {

View File

@@ -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;
}