Fix apng upload #939

This commit is contained in:
Him188 2021-01-31 15:41:21 +08:00
parent 84c33c1feb
commit 4834e20be0
3 changed files with 10 additions and 3 deletions

View File

@ -144,7 +144,7 @@ internal class GroupImpl(
uin = bot.id,
groupCode = id,
md5 = resource.md5,
size = resource.size
size = resource.size,
).sendAndExpect()
when (response) {

View File

@ -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,

View File

@ -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) {