refactor(chat): remove vip websocket session flow
This commit is contained in:
@@ -4,12 +4,6 @@ export interface ChatState {
|
||||
messages: UiMessage[];
|
||||
isReplyingAI: boolean;
|
||||
pendingReplyCount: number;
|
||||
/**
|
||||
* WebSocket 连接状态(仅 VIP 用户会话期间 true)
|
||||
* - VIP true:走 WS
|
||||
* - 非 VIP / 游客:固定 false,走 HTTP
|
||||
*/
|
||||
wsConnected: boolean;
|
||||
upgradePromptVisible: boolean;
|
||||
upgradeReason: "daily_limit" | "private_message" | "image" | null;
|
||||
upgradeHint: string | null;
|
||||
@@ -36,7 +30,6 @@ export const initialState: ChatState = {
|
||||
messages: [],
|
||||
isReplyingAI: false,
|
||||
pendingReplyCount: 0,
|
||||
wsConnected: false,
|
||||
upgradePromptVisible: false,
|
||||
upgradeReason: null,
|
||||
upgradeHint: null,
|
||||
|
||||
Reference in New Issue
Block a user