Annotate Bot.selfQQ with @MiraiExperimentalAPI

This commit is contained in:
Him188 2020-05-14 19:24:38 +08:00
parent 9b52aa6012
commit 4cc814cda5
2 changed files with 8 additions and 7 deletions

View File

@ -484,7 +484,7 @@ internal abstract class QQAndroidBotBase constructor(
headers { headers {
append( append(
"cookie", "cookie",
"uin=o${selfQQ.id}; skey=${client.wLoginSigInfo.sKey.data.encodeToString()}; p_uin=o${selfQQ.id};" "uin=o${id}; skey=${client.wLoginSigInfo.sKey.data.encodeToString()}; p_uin=o${id};"
) )
} }
} }
@ -518,9 +518,9 @@ internal abstract class QQAndroidBotBase constructor(
headers { headers {
append( append(
"cookie", "cookie",
"uin=o${selfQQ.id};" + "uin=o${id};" +
" skey=${client.wLoginSigInfo.sKey.data.encodeToString()};" + " skey=${client.wLoginSigInfo.sKey.data.encodeToString()};" +
" p_uin=o${selfQQ.id};" + " p_uin=o${id};" +
" p_skey=${client.wLoginSigInfo.psKeyMap["qun.qq.com"]?.data?.encodeToString()}; " " p_skey=${client.wLoginSigInfo.psKeyMap["qun.qq.com"]?.data?.encodeToString()}; "
) )
} }
@ -546,9 +546,9 @@ internal abstract class QQAndroidBotBase constructor(
headers { headers {
append( append(
"cookie", "cookie",
"uin=o${selfQQ.id};" + "uin=o${id};" +
" skey=${client.wLoginSigInfo.sKey.data.encodeToString()};" + " skey=${client.wLoginSigInfo.sKey.data.encodeToString()};" +
" p_uin=o${selfQQ.id};" + " p_uin=o${id};" +
" p_skey=${client.wLoginSigInfo.psKeyMap["qun.qq.com"]?.data?.encodeToString()}; " " p_skey=${client.wLoginSigInfo.psKeyMap["qun.qq.com"]?.data?.encodeToString()}; "
) )
} }
@ -575,7 +575,7 @@ internal abstract class QQAndroidBotBase constructor(
headers { headers {
append( append(
"cookie", "cookie",
"uin=o${selfQQ.id}; skey=${client.wLoginSigInfo.sKey.data.encodeToString()}; p_uin=o${selfQQ.id};" "uin=o${id}; skey=${client.wLoginSigInfo.sKey.data.encodeToString()}; p_uin=o${id};"
) )
} }
} }
@ -599,7 +599,7 @@ internal abstract class QQAndroidBotBase constructor(
headers { headers {
append( append(
"cookie", "cookie",
"uin=o${selfQQ.id}; skey=${client.wLoginSigInfo.sKey.data.encodeToString()}; p_uin=o${selfQQ.id};" "uin=o${id}; skey=${client.wLoginSigInfo.sKey.data.encodeToString()}; p_uin=o${id};"
) )
} }
} }

View File

@ -105,6 +105,7 @@ abstract class Bot : CoroutineScope, LowLevelBotAPIAccessor, BotJavaFriendlyAPI(
/** /**
* [User.id] [Bot.id] 相同的 [_lowLevelNewFriend] 实例 * [User.id] [Bot.id] 相同的 [_lowLevelNewFriend] 实例
*/ */
@MiraiExperimentalAPI
abstract val selfQQ: Friend abstract val selfQQ: Friend