refactor(servicing): 优化订单详情页面并更新版本号

- 移除订单详情页面的冗余代码和未使用的导入
- 简化订单详情页面的布局结构
- 更新项目版本号至 1.0.1.9.9.37
- 修复签名上传逻辑
-优化登录 token 存储和人脸识别相关代码
This commit is contained in:
songzhiling
2025-05-07 15:10:26 +08:00
parent 43e798e90e
commit 50b38bc9b6
4 changed files with 40 additions and 61 deletions

View File

@ -17,10 +17,10 @@ object GlobalData : GlobalLocalData() {
var token : String? = null
get() {
return mmkv.decodeString("ZD_TOKEN", null)
return mmkv.decodeString("TOKEN", null)
}
set(value) {
mmkv.encode("ZD_TOKEN", value)
mmkv.encode("TOKEN", value)
field = value
}
@ -73,10 +73,10 @@ object GlobalData : GlobalLocalData() {
//是否已经完成登录后的人脸识别
var isLoginRecognition : Boolean? = null
get() {
return mmkv.decodeBool("isLoginRecognition", true)
return mmkv.decodeBool("isLoginRecognition", false)
}
set(value) {
mmkv.encode("isLoginRecognition", value ?: true)
mmkv.encode("isLoginRecognition", value == true)
field = value
}
@ -98,7 +98,7 @@ object GlobalData : GlobalLocalData() {
return mmkv.decodeParcelable("currentLocation", AMapLocation::class.java)
}
set(value) {
value?.time= System.currentTimeMillis()
value?.time = System.currentTimeMillis()
mmkv.encode("currentLocation", value)
field = value
}