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

- 移除 PushMessageLiveData,改为使用 PushListener 接口
- 在 ServiceManager 中实现消息分发逻辑- 更新 PushMessageActivity 以接收广播消息
- 优化 JPushReceiver 和 MyMqttClient 的消息处理
- 调整 GlobalData 中的 isLoginRecognition 默认值
- 重构 SpeechManager 中的语音播放逻辑
This commit is contained in:
songzhiling
2025-04-28 18:06:16 +08:00
parent bc4590755a
commit 2f57b3e238
9 changed files with 271 additions and 130 deletions

View File

@ -73,10 +73,10 @@ object GlobalData : GlobalLocalData() {
//是否已经完成登录后的人脸识别
var isLoginRecognition : Boolean? = null
get() {
return mmkv.decodeBool("isLoginRecognition", false)
return mmkv.decodeBool("isLoginRecognition", true)
}
set(value) {
mmkv.encode("isLoginRecognition", value ?: false)
mmkv.encode("isLoginRecognition", value ?: true)
field = value
}
@ -117,7 +117,7 @@ object GlobalData : GlobalLocalData() {
currentLocation = null
driverInfoBean = null
loginTime = null
isLoginRecognition = null
// isLoginRecognition = null
}
fun clearAllOrderCache() {