From 64cf8676d3c37fca9d249e9b67951def1d83c815 Mon Sep 17 00:00:00 2001 From: tanlongsheng <252620078@qq.com> Date: Wed, 2 Jul 2025 17:32:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BC=9A=E8=AE=AE=E5=8A=A9?= =?UTF-8?q?=E6=89=8B=E6=95=B0=E6=8D=AE=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/core/utils/synchrodata.dart | 5 +++-- pubspec.yaml | 6 +++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/lib/core/utils/synchrodata.dart b/lib/core/utils/synchrodata.dart index 5cca0d2e1..a7fa19d1d 100644 --- a/lib/core/utils/synchrodata.dart +++ b/lib/core/utils/synchrodata.dart @@ -113,9 +113,10 @@ class Synchrodata { // 同步数据 static Future _synchrodata() async { - final db = await DatabaseHelper().database; var result = await Api.getOperationRecord(); - List records = result['records']; + List records = result['records'] ?? []; + if (records.isEmpty) return; + final db = await DatabaseHelper().database; await db.transaction((txn) async { for (var element in records) { final List existList = await txn.query( diff --git a/pubspec.yaml b/pubspec.yaml index 6fb187beb..6262a2de8 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -23,6 +23,10 @@ dependencies: audio_session: ^0.1.18 flutter_markdown: ^0.7.7+1 markdown: ^7.1.1 + appflowy_editor: + git: + url: https://github.com/AppFlowy-IO/appflowy-editor.git + ref: main permission_handler: ^10.4.5 web_socket_channel: ^2.4.0 flutter_dotenv: ^5.1.0 @@ -47,7 +51,7 @@ dependencies: path: plugins/window_size ref: 6c66ad23ee79749f30a8eece542cf54eaf157ed8 flutter_local_notifications: ^18.0.1 - device_info_plus: ^10.1.2 + device_info_plus: ^11.5.0 uuid: ^4.3.3 record: ^5.2.1 share_plus: ^11.0.0