mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-21 09:36:35 +00:00
fix: /get_cookies return
This commit is contained in:
parent
c724236930
commit
ff87da105c
@ -1,6 +1,6 @@
|
||||
import { OB11User } from '../../types';
|
||||
import { OB11Constructor } from '../../constructor';
|
||||
import { friends } from '@/core/data';
|
||||
import { friends, selfInfo } from '@/core/data';
|
||||
import BaseAction from '../BaseAction';
|
||||
import { ActionName } from '../types';
|
||||
import { NTQQUserApi } from '@/core/apis';
|
||||
@ -44,7 +44,7 @@ export class GetCookies extends BaseAction<Payload, Response> {
|
||||
if (!_PSkey || !_Skey) {
|
||||
throw new Error('获取Cookies失败');
|
||||
}
|
||||
const cookies = `pskey=${_PSkey}; skey=${_Skey}`;
|
||||
const cookies = `p_skey=${_PSkey}; skey=${_Skey}; p_uin=o${selfInfo.uin}`;
|
||||
return {
|
||||
cookies
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user