fix: 小问题

This commit is contained in:
手瓜一十雪 2024-08-09 15:31:41 +08:00
parent e4d3f95257
commit ffe480ad44
3 changed files with 3 additions and 3 deletions

View File

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

View File

@ -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);
}

View File

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