From 8ea6bace6a714fa1d2d64e6e75c0edc420be86c3 Mon Sep 17 00:00:00 2001 From: Songzex <2402265378@qq.com> Date: Wed, 4 Mar 2026 10:43:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E8=A7=A3=E5=86=B3=E6=89=AB?= =?UTF-8?q?=E7=A0=81=E7=BB=91=E5=AE=9A=E8=AE=BE=E5=A4=87=E7=9A=84=E9=BB=91?= =?UTF-8?q?=E5=B1=8Fbug=20AI=E6=99=BA=E8=83=BD=E4=BD=93=E7=9A=84=E4=B8=AD?= =?UTF-8?q?=E6=96=87=E7=9A=84=E5=8F=8B=E5=A5=BD=E6=8F=90=E7=A4=BA=E6=9B=B4?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/features/ai/presentation/bloc/ai_cubit.dart | 2 +- lib/features/ai/presentation/pages/ai_page.dart | 2 +- lib/features/my/presentation/web_view/user_info_pages.dart | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/features/ai/presentation/bloc/ai_cubit.dart b/lib/features/ai/presentation/bloc/ai_cubit.dart index bff6cd00..5fb7e71f 100644 --- a/lib/features/ai/presentation/bloc/ai_cubit.dart +++ b/lib/features/ai/presentation/bloc/ai_cubit.dart @@ -35,7 +35,7 @@ class AiCubit extends Cubit { void createNewSession() { emit(AiState( sessionId: DateTime.now().millisecondsSinceEpoch.toString(), - messages: [ChatMessage(text: "Welcome to the AI chat!", isUserMessage: false)], + messages: [ChatMessage(text: "快来和我一起探讨吧!", isUserMessage: false)], status: AiStatus.initial, selectedImageFile: null, // Explicitly set to null sessions: state.sessions, // Preserve existing sessions diff --git a/lib/features/ai/presentation/pages/ai_page.dart b/lib/features/ai/presentation/pages/ai_page.dart index 6452d19d..044011c4 100644 --- a/lib/features/ai/presentation/pages/ai_page.dart +++ b/lib/features/ai/presentation/pages/ai_page.dart @@ -238,7 +238,7 @@ class _AiViewState extends State { controller: _textController, enabled: state.status != AiStatus.loading, decoration: InputDecoration( - hintText: state.status == AiStatus.loading ? 'AI is thinking...' : 'Enter a message...', + hintText: state.status == AiStatus.loading ? 'AI正在思考中...' : '输入你的想法...', border: OutlineInputBorder( borderRadius: BorderRadius.circular(30.0), borderSide: const BorderSide(width: 0, style: BorderStyle.none), diff --git a/lib/features/my/presentation/web_view/user_info_pages.dart b/lib/features/my/presentation/web_view/user_info_pages.dart index a78d8891..184b07d3 100644 --- a/lib/features/my/presentation/web_view/user_info_pages.dart +++ b/lib/features/my/presentation/web_view/user_info_pages.dart @@ -88,10 +88,9 @@ class UserInfoCard extends StatelessWidget { try { // 5. 获取 Cubit 实例并调用绑定接口 - // 假设 AuthCubit 中已定义 bindDeviceByQr 方法 final Cubit = GetIt.I(); - // 执行绑定逻辑 (请确保 Cubit 层已实现此方法) + // 执行绑定逻辑 //await Cubit.bindDevice(qrCode); // 关闭加载框