mirror of
https://github.com/whitechi73/OpenShamrock.git
synced 2024-08-14 13:12:17 +08:00
Shamrock
: fix nt image error in very old qq
Signed-off-by: 白池 <whitechi73@outlook.com>
This commit is contained in:
parent
e96c356de4
commit
52ec43abf8
@ -171,6 +171,9 @@ internal object NtMsgElementConverter {
|
||||
storeId = image.storeID
|
||||
}
|
||||
|
||||
/*
|
||||
PicElement{picSubType=0,fileName=A655FCDADABC40D0CEAF6F9AF92937CD.jpg,fileSize=142865,picWidth=886,picHeight=1920,original=false,md5HexStr=a655fcdadabc40d0ceaf6f9af92937cd,sourcePath=null,thumbPath=null,transferStatus=2,progress=0,picType=1000,invalidState=0,fileUuid=CgoxMDI5Mzc0MTE1EhTnucgrUbp3MJjjagUM2-VxSQ5V7hiR3Agg_goo9ZCZt-HNhANQgJqeAQ,fileSubId=,thumbFileSize=0,fileBizId=null,downloadIndex=null,summary=,emojiFrom=null,emojiWebUrl=null,emojiAd=EmojiAD{url=,desc=,},emojiMall=EmojiMall{packageId=0,emojiId=0,},emojiZplan=EmojiZPlan{actionId=0,actionName=,actionType=0,playerNumber=0,peerUid=0,bytesReserveInfo=,},originImageMd5=,originImageUrl=null,importRichMediaContext=null,isFlashPic=false,}
|
||||
*/
|
||||
return MessageSegment(
|
||||
type = "image",
|
||||
data = hashMapOf(
|
||||
|
@ -160,7 +160,7 @@ internal object RichProtoSvc: BaseSvc() {
|
||||
width: UInt = 0u,
|
||||
height: UInt = 0u
|
||||
): String {
|
||||
val isNtServer = originalUrl.startsWith("/download")
|
||||
val isNtServer = !fileId.startsWith("/") || 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 || originalUrl.startsWith("/download")
|
||||
val isNtServer = storeId == 1 || !fileId.startsWith("/") || 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 = originalUrl.startsWith("/download")
|
||||
val isNtServer = !fileId.startsWith("/") || originalUrl.startsWith("/download")
|
||||
val domain = if (isNtServer) MULTIMEDIA_DOMAIN else GPRO_PIC
|
||||
if (originalUrl.isNotEmpty()) {
|
||||
if (isNtServer && !originalUrl.contains("rkey=")) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user