mirror of
https://github.com/whitechi73/OpenShamrock.git
synced 2024-08-14 13:12:17 +08:00
Shamrock
: support upload resource by NtKernel x3
Signed-off-by: 白池 <whitechi73@outlook.com>
This commit is contained in:
parent
e9a3a82b68
commit
eb807a0332
@ -16,4 +16,5 @@ data class CommFileInfo(
|
|||||||
@SerialName("md5") val md5: String,
|
@SerialName("md5") val md5: String,
|
||||||
@SerialName("uuid") val uuid: String,
|
@SerialName("uuid") val uuid: String,
|
||||||
@SerialName("sub_id") val subId: String,
|
@SerialName("sub_id") val subId: String,
|
||||||
|
@SerialName("sha") val sha: String,
|
||||||
)
|
)
|
@ -67,7 +67,8 @@ internal object UploadNtResource: IActionHandler() {
|
|||||||
fileSize = it.fileSize,
|
fileSize = it.fileSize,
|
||||||
md5 = it.md5,
|
md5 = it.md5,
|
||||||
uuid = it.uuid,
|
uuid = it.uuid,
|
||||||
subId = it.subId
|
subId = it.subId,
|
||||||
|
sha = it.sha ?: ""
|
||||||
)
|
)
|
||||||
}), echo)
|
}), echo)
|
||||||
}.onFailure {
|
}.onFailure {
|
||||||
|
@ -412,7 +412,7 @@ internal object AioListener : IKernelMsgListener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun onRichMediaUploadComplete(notifyInfo: FileTransNotifyInfo) {
|
override fun onRichMediaUploadComplete(notifyInfo: FileTransNotifyInfo) {
|
||||||
LogCenter.log("[BDH] 资源上传完成(${notifyInfo.trasferStatus}, ${notifyInfo.fileId}, ${notifyInfo.msgId}, ${notifyInfo.commonFileInfo})")
|
LogCenter.log({ "[BDH] 资源上传完成(${notifyInfo.trasferStatus}, ${notifyInfo.fileId}, ${notifyInfo.msgId}, ${notifyInfo.commonFileInfo})" }, Level.DEBUG)
|
||||||
RichMediaUploadHandler.notify(notifyInfo)
|
RichMediaUploadHandler.notify(notifyInfo)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user