Skip to content

Commit

Permalink
应该可以了
Browse files Browse the repository at this point in the history
  • Loading branch information
sisi0318 committed Dec 8, 2024
1 parent 36bc78f commit 200f3d8
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions Lagrange.Core/Message/Entity/ImageEntity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@ IEnumerable<Elem> IMessageEntity.PackElement()
MsgInfo = extra,
SubType = (int)extra.ExtBizInfo.Pic.BizType,
GroupUin = msgInfoBody.HashSum.TroopSource?.GroupUin,
FriendUid = msgInfoBody.HashSum.BytesPbReserveC2c?.FriendUid
FriendUid = msgInfoBody.HashSum.BytesPbReserveC2c?.FriendUid,
H = index.Info.Height,
W = index.Info.Width
};
}

Expand All @@ -130,7 +132,9 @@ IEnumerable<Elem> IMessageEntity.PackElement()
ImageSize = image.FileLen,
ImageUrl = $"{BaseUrl}{image.OrigUrl}",
Summary = image.PbRes.Summary,
SubType = image.PbRes.SubType
SubType = image.PbRes.SubType,
H = image.PicHeight,
W = image.PicWidth
};
}

Expand All @@ -142,7 +146,9 @@ IEnumerable<Elem> IMessageEntity.PackElement()
ImageSize = image.FileLen,
ImageUrl = $"{LegacyBaseUrl}{image.OrigUrl}",
Summary = image.PbRes.Summary,
SubType = image.PbRes.SubType
SubType = image.PbRes.SubType,
H = image.PicHeight,
W = image.PicWidth
};
}

Expand All @@ -158,7 +164,9 @@ IEnumerable<Elem> IMessageEntity.PackElement()
ImageSize = face.Size,
ImageUrl = $"{BaseUrl}{face.OrigUrl}",
Summary = face.PbReserve?.Summary,
SubType = face.PbReserve?.SubType ?? GetImageTypeFromFaceOldData(face)
SubType = face.PbReserve?.SubType ?? GetImageTypeFromFaceOldData(face),
H = (uint)face.Height,
W = (uint)face.Width
};
}

Expand All @@ -170,7 +178,9 @@ IEnumerable<Elem> IMessageEntity.PackElement()
ImageSize = face.Size,
ImageUrl = $"{LegacyBaseUrl}{face.OrigUrl}",
Summary = face.PbReserve?.Summary,
SubType = face.PbReserve?.SubType ?? GetImageTypeFromFaceOldData(face)
SubType = face.PbReserve?.SubType ?? GetImageTypeFromFaceOldData(face),
H = (uint)face.Height,
W = (uint)face.Width
};
}

Expand Down

0 comments on commit 200f3d8

Please sign in to comment.