feat:广播同步

This commit is contained in:
dzc committed 2025-04-28 11:45:11 +08:00
1 parent e5100b46b1
commit 5613a2fa9e
3 files changed
+22 -2

No files matched your search

@@ -82,7 +82,16 @@ abstract class SyncTakeFoodBroadcastTool {
v.broadcastCount++;
await broadcastDao.edit(v);
}
// 发送mq消息
// 通知服务端
if (AppNetworkTool.isAutoNetwork()) {
final serviceCodeList = currentGroup
.map(
(e) => e.serviceCode,
)
.toList();
final pa = {"ids": serviceCodeList, "count": 1};
await HardApi.broadcast(pa);
}
}
} catch (e, stack) {
logger.e("|$_tag|检查广播,广播错误,error:|$e|stack:|$stack|");