update pay function

This commit is contained in:
2025-11-28 12:27:30 +08:00
parent 007de2d76d
commit 9c5900c7f5
6 changed files with 363 additions and 65 deletions

View File

@@ -164,7 +164,7 @@ export const useAgentChat = ({
isUser: m.type === MessageTypes.USER,
content: m.content,
})),
user_id: user?.id || 'anonymous',
user_id: user?.id ? String(user.id) : 'anonymous',
user_nickname: user?.nickname || '匿名用户',
user_avatar: user?.avatar || '',
subscription_type: user?.subscription_type || 'free',