refactor(servicing): 重构推送消息处理机制

- 新增 ZdPushServiceReceive 类用于集中处理推送消息
- 优化了消息处理逻辑,提高了代码的可维护性和可扩展性
-改进了消息在主进程中的广播发送方式
- 优化了语音播放逻辑,提高了播放的稳定性和流畅性
- 调整了通知渠道的创建和通知的发送方式
This commit is contained in:
songzhiling
2025-04-29 17:37:46 +08:00
parent 2f57b3e238
commit 22b0f14236
12 changed files with 453 additions and 281 deletions

View File

@ -95,10 +95,11 @@ object GlobalData : GlobalLocalData() {
var currentLocation : AMapLocation? = null
get() {
return field
return mmkv.decodeParcelable("currentLocation", AMapLocation::class.java)
}
set(value) {
value?.time = System.currentTimeMillis()
value?.time= System.currentTimeMillis()
mmkv.encode("currentLocation", value)
field = value
}
@ -117,7 +118,7 @@ object GlobalData : GlobalLocalData() {
currentLocation = null
driverInfoBean = null
loginTime = null
// isLoginRecognition = null
isLoginRecognition = null
}
fun clearAllOrderCache() {