feat(app): 重构应用为发盘机app,界面布局优化、移除无用代码
- 将应用名称从 SmartPlateCabinet 更改为 SmartTakePlate - 更新初始化页面背景图片为 bg_collect_page3 - 替换 View 组件为 Space 组件以优化布局权重分配 - 调整取盘按钮尺寸和文字大小提升用户体验 - 简化人脸识别登录页面布局结构 - 更新应用图标资源为 logo_launcher - 移除未使用的权限声明和活动注册 - 优化人脸识别相关 API 接口调用 - 调整时间显示逻辑仅保留时间部分 - 移除扫描枪事件监听相关功能代码 - 重构人脸识别数据更新逻辑 - 移除余额不足对话框相关代码
This commit is contained in:
@@ -28,10 +28,10 @@ object DateTimeUtils {
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取带时间的完整中文格式(示例:2025年6月11日 星期三 14:30)
|
||||
* 获取带时间的完整中文格式(示例:2025年06月11日 星期三 14:30)
|
||||
*/
|
||||
fun getChineseDateTimeString(date: Date = Date()): String {
|
||||
return SimpleDateFormat("yyyy年M月d日 EEEE HH:mm:ss", Locale.CHINA).format(date)
|
||||
return SimpleDateFormat("yyyy年MM月dd日 EEEE HH:mm", Locale.CHINA).format(date)
|
||||
}
|
||||
|
||||
// 使用线程安全的日期格式化(避免 SimpleDateFormat 的线程安全问题)
|
||||
@@ -52,7 +52,7 @@ object DateTimeUtils {
|
||||
*/
|
||||
fun realTimeChineseDateFlow(intervalMillis: Long = 1000) = flow {
|
||||
while (true) {
|
||||
emit(getChineseDateTimePair())
|
||||
emit(getChineseDateTimeString())
|
||||
delay(intervalMillis)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user