Browse Source

优化会议助手数据同步

newdev_shunjiawei
tanlongsheng 1 year ago
parent
commit
64cf8676d3
  1. 5
      lib/core/utils/synchrodata.dart
  2. 6
      pubspec.yaml

5
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(

6
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

Loading…
Cancel
Save