Shamrock: Rollback 52ec43abf80d6595d1fe3b490ebe1bfc23bf0ab8 commit

Signed-off-by: 白池 <whitechi73@outlook.com>
This commit is contained in:
白池 2024-02-29 10:42:36 +08:00
parent 3619cba33c
commit 737acfa41b
2 changed files with 5 additions and 5 deletions

View File

@ -119,7 +119,7 @@ internal object ElemConverter {
chatType = chatType,
size = customFace.size!!.toLong(),
sha = "",
fileId = customFace.fileUuid,
fileId = "",
storeId = 0,
)
)
@ -162,7 +162,7 @@ internal object ElemConverter {
chatType = chatType,
size = notOnlineImage.fileLen!!.toLong(),
sha = "",
fileId = notOnlineImage.fileUuid,
fileId = "",
storeId = 0,
)
)

View File

@ -160,7 +160,7 @@ internal object RichProtoSvc: BaseSvc() {
width: UInt = 0u,
height: UInt = 0u
): String {
val isNtServer = !fileId.startsWith("/") || originalUrl.startsWith("/download")
val isNtServer = originalUrl.startsWith("/download")
val domain = if (isNtServer) MULTIMEDIA_DOMAIN else GPRO_PIC
if (originalUrl.isNotEmpty()) {
if (isNtServer && !originalUrl.contains("rkey=")) {
@ -196,7 +196,7 @@ internal object RichProtoSvc: BaseSvc() {
height: UInt = 0u,
storeId: Int = 0
): String {
val isNtServer = storeId == 1 || !fileId.startsWith("/") || originalUrl.startsWith("/download")
val isNtServer = storeId == 1 || originalUrl.startsWith("/download")
val domain = if (isNtServer) MULTIMEDIA_DOMAIN else C2C_PIC
if (originalUrl.isNotEmpty()) {
if (fileId.isNotEmpty()) getNtPicRKey(
@ -238,7 +238,7 @@ internal object RichProtoSvc: BaseSvc() {
width: UInt = 0u,
height: UInt = 0u
): String {
val isNtServer = !fileId.startsWith("/") || originalUrl.startsWith("/download")
val isNtServer = originalUrl.startsWith("/download")
val domain = if (isNtServer) MULTIMEDIA_DOMAIN else GPRO_PIC
if (originalUrl.isNotEmpty()) {
if (isNtServer && !originalUrl.contains("rkey=")) {