feat: implement get cookies and CSRF and credentials

This commit is contained in:
H3CoF6 committed 2026-05-09 05:17:18 +08:00
1 parent 8b313fe088
commit c8dd520d65
5 files changed
+95 -6

No files matched your search

@@ -132,6 +132,9 @@ export function buildApiContext(ref: InstanceRef): ApiActionContext {
getGroupEssenceAll: (groupId: number) => bridge.getGroupEssenceAll(groupId),
sendGroupNotice: (groupId: number, content: string, options?: any) => bridge.sendGroupNotice(groupId, content, options),
getGroupNotice: (groupId: number) => bridge.getGroupNotice(groupId),
getCookiesStr: (domain: string) => bridge.getCookiesStr(domain),
getCsrfToken: () => bridge.getCsrfToken(),
getCredentials: (domain: string) => bridge.getCredentials(domain),
};
}