[2.14.0][Opt]对消息盒子中V2X和运营消息的参数进行检查

This commit is contained in:
chenfufeng
2023-02-15 17:14:36 +08:00
parent d37737d956
commit 6cd9b5d76c
2 changed files with 14 additions and 1 deletions

View File

@@ -1,8 +1,16 @@
package com.mogo.eagle.core.data.msgbox package com.mogo.eagle.core.data.msgbox
import android.util.Log
import com.mogo.eagle.core.utilcode.mogo.logger.CallerLogger
import java.io.Serializable import java.io.Serializable
/** /**
* 运营消息:-1表示初始值 * 运营消息:-1表示初始值
*/ */
data class OperationMsg(val timestamp : Long, val content: String, val type: Int = -1): Serializable data class OperationMsg(val timestamp : Long, val content: String, val type: Int = -1): Serializable {
init {
if (content.isEmpty()) {
CallerLogger.e("MsgBox", Log.getStackTraceString(Throwable()))
}
}
}

View File

@@ -1,5 +1,7 @@
package com.mogo.eagle.core.data.msgbox package com.mogo.eagle.core.data.msgbox
import android.util.Log
import com.mogo.eagle.core.utilcode.mogo.logger.CallerLogger
import java.io.Serializable import java.io.Serializable
data class V2XMsg(var type: String = "", var content: String? = "", var tts: String? = ""): Serializable { data class V2XMsg(var type: String = "", var content: String? = "", var tts: String? = ""): Serializable {
@@ -9,5 +11,8 @@ data class V2XMsg(var type: String = "", var content: String? = "", var tts: Str
init { init {
timeStamp = System.currentTimeMillis() timeStamp = System.currentTimeMillis()
if (content.isNullOrEmpty()) {
CallerLogger.e("MsgBox", Log.getStackTraceString(Throwable()))
}
} }
} }