feat(servicing): 增加人脸核验相关功能
- 在 GlobalData 中添加 isLoginRecognition 字段,用于记录是否完成登录后的人脸识别 - 修改 MainActivity 中的示例 URI - 更新 WaitToStartActivity 中的对话框逻辑,增加下一步操作确认对话框 - 修改 WaitToStartVm 中的错误处理方式,使用状态更新替代 Toast 提示 - 优化 ZdCameraXActivity 中的初始化流程,增加屏幕亮度设置
This commit is contained in:
@ -75,6 +75,16 @@ object GlobalData {
|
||||
mmkv.encode("lastLoginBean", value)
|
||||
}
|
||||
|
||||
//是否已经完成登录后的人脸识别
|
||||
var isLoginRecognition : Boolean? = null
|
||||
get() {
|
||||
return mmkv.decodeBool("isLoginRecognition", false)
|
||||
}
|
||||
set(value) {
|
||||
mmkv.encode("isLoginRecognition", value ?: false)
|
||||
field = value
|
||||
}
|
||||
|
||||
var currentOrder : OrderInfo? = null
|
||||
get() {
|
||||
return mmkv.decodeParcelable("currentOrder", OrderInfo::class.java)
|
||||
|
Reference in New Issue
Block a user