refactor(servicing): 重构极光推送相关代码并优化面部识别功能

- 移除了极光推送相关的冗余代码和配置- 更新了极光推送 SDK版本
- 优化了面部识别流程,增加了弱光环境处理
- 调整了车型信息展示逻辑
- 修复了一些潜在的 bug 和性能问题
This commit is contained in:
songzhiling
2025-05-23 20:25:13 +08:00
parent f29cac2d73
commit 3344e5acd8
16 changed files with 183 additions and 272 deletions

View File

@ -7,7 +7,6 @@ import com.tencent.mmkv.MMKV
import com.za.base.AppConfig
import com.za.base.Const
import com.za.bean.db.order.OrderInfo
import com.za.common.log.LogUtil
import com.za.room.RoomHelper
import com.za.room.db.user.DriverInfoBean
@ -52,13 +51,11 @@ object GlobalData : GlobalLocalData() {
if (field == null) {
field = localDriverInfoBean
}
LogUtil.print("get driverInfoBean", "获取司机信息: $field")
return field
}
set(value) {
localDriverInfoBean = value
field = value
LogUtil.print("set driverInfoBean", "司机信息: $field")
}
@ -126,6 +123,14 @@ object GlobalData : GlobalLocalData() {
mmkv.encode("isReviewEnv", value)
}
var isHasShowKeepAlive : Boolean
get() {
return mmkv.decodeBool("isShowKeepAlive", false)
}
set(value) {
mmkv.encode("isShowKeepAlive", value)
}
fun clearUserCache() {
token = null
aesKey = null
@ -133,6 +138,7 @@ object GlobalData : GlobalLocalData() {
driverInfoBean = null
loginTime = null
isLoginRecognition = null
isHasShowKeepAlive = false
if (AppConfig.isRelease) {
networkEnv = if (AppConfig.isRelease) {