mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-16 13:01:14 +00:00
fix: 小问题
This commit is contained in:
parent
e4d3f95257
commit
ffe480ad44
@ -184,7 +184,7 @@ export class NTQQMusicSignApi {
|
||||
// "ver": "0.0.0.1"
|
||||
// };
|
||||
const data = (await this.core.getApiContext().UserApi.getQzoneCookies());
|
||||
const Bkn = this.core.getApiContext().WebApi.genBkn(data.p_skey);
|
||||
const Bkn = this.core.getApiContext().WebApi.getBknFromCookie(data.p_skey);
|
||||
|
||||
const CookieValue = 'p_skey=' + data.p_skey + '; skey=' + data.skey + '; p_uin=o' + this.core.selfInfo.uin + '; uin=o' + this.core.selfInfo.uin;
|
||||
|
||||
|
@ -204,7 +204,7 @@ export class NTQQUserApi {
|
||||
async getUidByUin(Uin: string) {
|
||||
//此代码仅临时使用,后期会被废弃
|
||||
if (this.context.basicInfoWrapper.requireMinNTQQBuild('26702')) {
|
||||
return await this..getUidByUinV2(Uin);
|
||||
return await this.getUidByUinV2(Uin);
|
||||
}
|
||||
return await this.getUidByUinV1(Uin);
|
||||
}
|
||||
|
@ -289,7 +289,7 @@ export class NTQQWebApi {
|
||||
return Object.entries(cookieObject).map(([key, value]) => `${key}=${value}`).join('; ');
|
||||
}
|
||||
|
||||
private getBknFromCookie(cookieObject: any) {
|
||||
public getBknFromCookie(cookieObject: any) {
|
||||
const sKey = cookieObject.skey as string;
|
||||
|
||||
let hash = 5381;
|
||||
|
Loading…
Reference in New Issue
Block a user