feat:取餐
This commit is contained in:
1 parent
5613a2fa9e
commit
2f72e7a3c0
14 files changed
+36
-22
No files matched your search
@@ -70,7 +70,7 @@ abstract class SyncTakeFoodBroadcastTool {
|
||||
msg += "${v.content},";
|
||||
}
|
||||
msg = msg.substring(0, msg.length - 1);
|
||||
msg += "的用户,请尽快取餐";
|
||||
msg += "的用户,尽快取餐";
|
||||
// 播报当前组
|
||||
await TtsManage.speak(msg);
|
||||
// 如果不是最后一组,等待一段时间再播报下一组
|
||||
@@ -117,7 +117,7 @@ abstract class SyncTakeFoodBroadcastTool {
|
||||
static Future<bool> _queryTodayBroadcastGroup(dynamic pa) async {
|
||||
final serviceList = await HardApi.broadcastToday(pa);
|
||||
if (serviceList == null) return false;
|
||||
final result = serviceList.size == 100;
|
||||
final result = serviceList.total == 100;
|
||||
if (ObjectUtil.isEmptyList(serviceList.records)) return false;
|
||||
final appC = Get.find<AppControl>();
|
||||
final broadcastDao = appC.dataBase.getBroadcastDao;
|
||||
@@ -141,9 +141,9 @@ abstract class SyncTakeFoodBroadcastTool {
|
||||
) {
|
||||
return BroadcastEntity(
|
||||
content: obj.content,
|
||||
broadcastCount: 0,
|
||||
broadcastCount: obj.broadcastCount ?? 0,
|
||||
broadcastMaxCount: obj.broadcastMaxCount ?? 20,
|
||||
isBroadcast: true,
|
||||
isBroadcast: obj.isBroadcast,
|
||||
isDone: false,
|
||||
productDesc: obj.productDesc,
|
||||
serviceCode: obj.id,
|
||||
|
||||
Reference in new issue
Block a user