fix(weixin): harden protocol delivery, streaming, and login (#5263)

This commit is contained in:
chengyongru
2026-08-07 16:53:31 +08:00
committed by GitHub
parent edb3b7e446
commit 332c159b93
23 changed files with 2858 additions and 238 deletions
+4
View File
@@ -627,9 +627,13 @@ export async function pollChannelConnect(
channel: string,
sessionId: string,
base: string = "",
params: Readonly<Record<string, string>> = {},
): Promise<ChannelConnectPayload> {
const query = new URLSearchParams();
query.set("session_id", sessionId);
Object.entries(params).forEach(([key, value]) => {
if (key !== "session_id") query.set(key, value);
});
return request<ChannelConnectPayload>(
`${base}/api/settings/channels/${channel}/connect/poll?${query}`,
token,