mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-09 09:50:16 +08:00
Fix apng upload #939
This commit is contained in:
parent
84c33c1feb
commit
4834e20be0
@ -144,7 +144,7 @@ internal class GroupImpl(
|
||||
uin = bot.id,
|
||||
groupCode = id,
|
||||
md5 = resource.md5,
|
||||
size = resource.size
|
||||
size = resource.size,
|
||||
).sendAndExpect()
|
||||
|
||||
when (response) {
|
||||
|
@ -206,6 +206,13 @@ internal class TryUpImgReq(
|
||||
@ProtoNumber(6) @JvmField val fileName: String = "",
|
||||
@ProtoNumber(7) @JvmField val srcTerm: Int = 0,
|
||||
@ProtoNumber(8) @JvmField val platformType: Int = 0,
|
||||
/**
|
||||
* if uinType = 1 then 1 else2
|
||||
*
|
||||
UIN_QQ = new UINTYPE(0, 0, "UIN_QQ");
|
||||
UIN_EMAIL = new UINTYPE(1, 1, "UIN_EMAIL");
|
||||
UIN_MOBILE = new UINTYPE(2, 2, "UIN_MOBILE");
|
||||
*/
|
||||
@ProtoNumber(9) @JvmField val buType: Int = 0,
|
||||
@ProtoNumber(10) @JvmField val picWidth: Int = 0,
|
||||
@ProtoNumber(11) @JvmField val picHeight: Int = 0,
|
||||
|
@ -41,12 +41,12 @@ internal class ImgStore {
|
||||
size: Long,
|
||||
picWidth: Int = 0, // not orthodox
|
||||
picHeight: Int = 0, // not orthodox
|
||||
picType: Int = 1000,
|
||||
picType: Int = 2001,
|
||||
fileId: Long = 0,
|
||||
filename: String = getRandomString(16) + ".gif", // make server happier
|
||||
srcTerm: Int = 5,
|
||||
platformType: Int = 9,
|
||||
buType: Int = 1,
|
||||
buType: Int = 2,
|
||||
appPicType: Int = 1006,
|
||||
originalPic: Int = 0
|
||||
): OutgoingPacket = buildOutgoingUniPacket(client) {
|
||||
|
Loading…
Reference in New Issue
Block a user