mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-05 07:30:09 +08:00
finish fix tim pc
This commit is contained in:
parent
90a7306822
commit
a174f17493
@ -232,7 +232,7 @@ internal fun MsgComm.Msg.toMessageChain(
|
|||||||
|
|
||||||
val pptMsg = ptt?.run {
|
val pptMsg = ptt?.run {
|
||||||
when (fileType) {
|
when (fileType) {
|
||||||
4 -> Voice(String(fileName), fileMd5, fileSize.toLong(), time, String(downPara))
|
4 -> Voice(String(fileName), fileMd5, fileSize.toLong(),String(downPara))
|
||||||
else -> null
|
else -> null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -145,7 +145,6 @@ internal object MessageSvcPbSendMsg : OutgoingPacketFactory<MessageSvcPbSendMsg.
|
|||||||
boolValid = true,
|
boolValid = true,
|
||||||
fileSize = fileSize.toInt(),
|
fileSize = fileSize.toInt(),
|
||||||
fileType = 4,
|
fileType = 4,
|
||||||
time = voiceLength,
|
|
||||||
pbReserve = byteArrayOf(0)
|
pbReserve = byteArrayOf(0)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -16,8 +16,6 @@ abstract class PttMessage : MessageContent {
|
|||||||
abstract val fileName: String
|
abstract val fileName: String
|
||||||
abstract val md5: ByteArray
|
abstract val md5: ByteArray
|
||||||
abstract val fileSize: Long
|
abstract val fileSize: Long
|
||||||
abstract val voiceLength:Int
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -29,7 +27,6 @@ class Voice(
|
|||||||
override val fileName: String,
|
override val fileName: String,
|
||||||
override val md5: ByteArray,
|
override val md5: ByteArray,
|
||||||
override val fileSize: Long,
|
override val fileSize: Long,
|
||||||
override val voiceLength: Int,
|
|
||||||
private val _url: String
|
private val _url: String
|
||||||
) : PttMessage() {
|
) : PttMessage() {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user