更新预约单数

This commit is contained in:
GYJ
2024-11-27 13:37:13 +08:00
parent 1a88faae34
commit 411e85fb3d
10 changed files with 254 additions and 23 deletions

View File

@@ -15,8 +15,6 @@ class MyEventChannel {
static void onGetCallLogResult() {
EventChannel channel = EventChannel(getChannelName(kCallLogCallback));
channel.receiveBroadcastStream().listen((Object? o) {
yjPrint("onGetCallLogResult");
yjPrint(o);
GetCallLogEvent event = GetCallLogEvent();
if (o is String) {
event.isSuccess = true;
@@ -24,6 +22,9 @@ class MyEventChannel {
List<CallLogModel> callLogs = [];
for (var item in list) {
callLogs.add(CallLogModel.fromJson(item));
if (callLogs.length >= 100) {
break;
}
}
event.callLogs = callLogs.reversed.toList();
} else {