Shamrock: グループファイルのハッシュ値が増加する

This commit is contained in:
ikechan8370 2023-11-25 13:51:16 +08:00
parent 5ba8bd11e2
commit dabe2ea886
2 changed files with 9 additions and 1 deletions

View File

@ -166,7 +166,11 @@ internal object FileSvc: BaseSvc() {
modifyTime = fileInfo.uint32_modify_time.get(), modifyTime = fileInfo.uint32_modify_time.get(),
downloadTimes = fileInfo.uint32_download_times.get(), downloadTimes = fileInfo.uint32_download_times.get(),
uploadUin = fileInfo.uint64_uploader_uin.get(), uploadUin = fileInfo.uint64_uploader_uin.get(),
uploadNick = fileInfo.str_uploader_name.get() uploadNick = fileInfo.str_uploader_name.get(),
md5 = fileInfo.bytes_md5.get().toByteArray().toHexString(),
sha = fileInfo.bytes_sha.get().toByteArray().toHexString(),
// 根本没有
sha3 = fileInfo.bytes_sha3.get().toByteArray().toHexString(),
)) ))
} }
else if (file.uint32_type.get() == oidb_0x6d8.GetFileListRspBody.TYPE_FOLDER) { else if (file.uint32_type.get() == oidb_0x6d8.GetFileListRspBody.TYPE_FOLDER) {

View File

@ -27,6 +27,10 @@ data class FileInfo(
@SerialName("download_times") val downloadTimes: Int, @SerialName("download_times") val downloadTimes: Int,
@SerialName("uploader") val uploadUin: Long, @SerialName("uploader") val uploadUin: Long,
@SerialName("upload_name") val uploadNick: String, @SerialName("upload_name") val uploadNick: String,
@SerialName("sha") val sha: String,
@SerialName("sha3") val sha3: String,
@SerialName("md5") val md5: String,
) )
@Serializable @Serializable