mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-03 01:39:35 +08:00
Annotate Bot.selfQQ
with @MiraiExperimentalAPI
This commit is contained in:
parent
9b52aa6012
commit
4cc814cda5
@ -484,7 +484,7 @@ internal abstract class QQAndroidBotBase constructor(
|
||||
headers {
|
||||
append(
|
||||
"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 {
|
||||
append(
|
||||
"cookie",
|
||||
"uin=o${selfQQ.id};" +
|
||||
"uin=o${id};" +
|
||||
" 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()}; "
|
||||
)
|
||||
}
|
||||
@ -546,9 +546,9 @@ internal abstract class QQAndroidBotBase constructor(
|
||||
headers {
|
||||
append(
|
||||
"cookie",
|
||||
"uin=o${selfQQ.id};" +
|
||||
"uin=o${id};" +
|
||||
" 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()}; "
|
||||
)
|
||||
}
|
||||
@ -575,7 +575,7 @@ internal abstract class QQAndroidBotBase constructor(
|
||||
headers {
|
||||
append(
|
||||
"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 {
|
||||
append(
|
||||
"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};"
|
||||
)
|
||||
}
|
||||
}
|
||||
|
@ -105,6 +105,7 @@ abstract class Bot : CoroutineScope, LowLevelBotAPIAccessor, BotJavaFriendlyAPI(
|
||||
/**
|
||||
* [User.id] 与 [Bot.id] 相同的 [_lowLevelNewFriend] 实例
|
||||
*/
|
||||
@MiraiExperimentalAPI
|
||||
abstract val selfQQ: Friend
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user