[2.14.0][Opt]对消息盒子中V2X和运营消息的参数进行检查
This commit is contained in:
@@ -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()))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -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()))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user