Shamrock: support upload resource by NtKernel x3

Signed-off-by: 白池 <whitechi73@outlook.com>
This commit is contained in:
白池 2024-02-25 12:46:40 +08:00
parent e9a3a82b68
commit eb807a0332
3 changed files with 4 additions and 2 deletions

View File

@ -16,4 +16,5 @@ data class CommFileInfo(
@SerialName("md5") val md5: String,
@SerialName("uuid") val uuid: String,
@SerialName("sub_id") val subId: String,
@SerialName("sha") val sha: String,
)

View File

@ -67,7 +67,8 @@ internal object UploadNtResource: IActionHandler() {
fileSize = it.fileSize,
md5 = it.md5,
uuid = it.uuid,
subId = it.subId
subId = it.subId,
sha = it.sha ?: ""
)
}), echo)
}.onFailure {

View File

@ -412,7 +412,7 @@ internal object AioListener : IKernelMsgListener {
}
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)
}