refactor(servicing): 重构推送消息处理机制
- 移除 PushMessageLiveData,改为使用 PushListener 接口 - 在 ServiceManager 中实现消息分发逻辑- 更新 PushMessageActivity 以接收广播消息 - 优化 JPushReceiver 和 MyMqttClient 的消息处理 - 调整 GlobalData 中的 isLoginRecognition 默认值 - 重构 SpeechManager 中的语音播放逻辑
This commit is contained in:
@ -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() {
|
||||
|
Reference in New Issue
Block a user