From c7f6e77a8ac1a31bc86714de74d00dfa20f8dca1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E8=90=8C?= <494089941@qq.com> Date: Thu, 26 May 2022 14:54:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=89=93=E5=8C=85=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E6=96=87=E4=BB=B6=E8=B7=AF=E5=BE=84=E4=B8=BA=E7=9B=B8?= =?UTF-8?q?=E5=AF=B9=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/utils/websocket/fire_dialog.dart | 4 ++-- tool/config.dart | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 tool/config.dart diff --git a/lib/utils/websocket/fire_dialog.dart b/lib/utils/websocket/fire_dialog.dart index 0131f265..57427e95 100644 --- a/lib/utils/websocket/fire_dialog.dart +++ b/lib/utils/websocket/fire_dialog.dart @@ -86,9 +86,9 @@ class FireDialog { '${alarmModel.oneButtonAlarm!.name}联系方式:${alarmModel.oneButtonAlarm!.tel}\n' '如未能联系到${alarmModel.oneButtonAlarm!.name}。可择情报警'; case 4: - return '${DateUtil.formatDateStr(alarmModel.deviceAlarm!.time, format: DateFormats.zh_y_mo_d_h_m)}\n\n${alarmModel!.clientAlarm!.content}'; + return '${DateUtil.formatDateStr(alarmModel.deviceAlarm!.time, format: DateFormats.zh_y_mo_d_h_m)}\n\n${alarmModel.clientAlarm!.content}'; case 5: - return '注意:\n\n有住户使用了SOS紧急联系报警,请及时上门或联系人员前往查看,设备号:${alarmModel!.elderlyCareEquipmentReminder!.deviceNo}' + return '注意:\n\n有住户使用了SOS紧急联系报警,请及时上门或联系人员前往查看,设备号:${alarmModel.elderlyCareEquipmentReminder!.deviceNo}' '\n\n${alarmModel.elderlyCareEquipmentReminder!.content}'; default: diff --git a/tool/config.dart b/tool/config.dart new file mode 100644 index 00000000..2ed7a65a --- /dev/null +++ b/tool/config.dart @@ -0,0 +1,19 @@ +class Config { + ///用户根目录 + static const String homeDir = '/users/zhangmeng'; + + ///包名 + static const String packageName = 'aku_new_community'; + + ///打包目录 + static String get buildPath => + './build/app/outputs/flutter-apk/app-release.apk'; + + ///测试包文件夹 + static String get apkDevDir => + '../team/bee/aku_new_community/dev'; + + ///正式包文件夹 + static String get apkDir => + '../team/bee/aku_new_community/release'; +}