refactor: remove externalSource references from various components for consistency

This commit is contained in:
mlogclub
2026-04-28 11:11:16 +08:00
parent cf63b75590
commit 75afe60d4b
8 changed files with 4 additions and 28 deletions
-6
View File
@@ -2,8 +2,6 @@ export type KefuWidgetHostConfig = {
channelId: string
baseUrl: string
apiBaseUrl?: string
/** 与后端 enums.ExternalSource 一致,默认 web_chat */
externalSource?: string
/** 外部访客稳定标识;未传时使用浏览器本地访客 ID */
externalId?: string
/** 访客展示名,随请求以 X-External-Name / WS query externalName 传给后端 */
@@ -48,10 +46,6 @@ export function readKefuWidgetConfig(): KefuWidgetHostConfig {
query.get("apiBaseUrl") ??
process.env.NEXT_PUBLIC_API_BASE_URL?.trim() ??
undefined,
externalSource:
query.get("externalSource") ??
process.env.NEXT_PUBLIC_OPEN_IM_EXTERNAL_SOURCE?.trim() ??
undefined,
externalId: query.get("externalId") ?? undefined,
externalName: query.get("externalName") ?? undefined,
userToken: query.get("userToken") ?? undefined,