From 803bfbc9eedf120427d4b4d9c0d77b6f7ecc2cb0 Mon Sep 17 00:00:00 2001 From: Rodger-Wang <1367893453@qq.com> Date: Sat, 26 Sep 2026 21:51:50 +0800 Subject: [PATCH] =?UTF-8?q?client=EF=BC=9A=E3=80=8C=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E8=AE=BE=E5=A4=87=E3=80=8D=E9=A1=B5=E6=9A=82=E6=97=B6=E4=B8=8B?= =?UTF-8?q?=E6=9E=B6=20AI=E6=89=8B=E6=9C=BA=E6=94=AF=E6=9E=B6=EF=BC=9B?= =?UTF-8?q?=E6=9E=84=E5=BB=BA=E5=8F=B7=201.0.2+23?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - phoneHolder(EaiRec 支架)从 DeviceCategories.all 挪回 hidden:添加设备页不再展示; 定义保留,已连过的支架照常回连、导入录音,默认功能编排与设备管理显示不受影响。上架时挪回 all 即可 - pubspec 构建号 21 → 23(正式 release 包 1.0.2+23 所用) 验证:dart analyze 无新增问题;flutter test 224 全过;release 包装到 OPPO PFTM10,选择设备页只剩耳机与车载香薰。 Co-Authored-By: Claude Opus 5.5 (1M context) --- .../lib/data/models/device_category.dart | 32 ++++++++++--------- apps/client/pubspec.yaml | 2 +- 2 files changed, 18 insertions(+), 16 deletions(-) diff --git a/apps/client/lib/data/models/device_category.dart b/apps/client/lib/data/models/device_category.dart index a45219be..9d493df3 100644 --- a/apps/client/lib/data/models/device_category.dart +++ b/apps/client/lib/data/models/device_category.dart @@ -72,7 +72,8 @@ class DeviceCategories { // 2026-09-08 废弃,下发的值恒为 0,再也匹配不到 1/2/3。留着字段只为不动 // 老数据结构,**新品类一律用 nameKeywords 圈定**。圈不到时 productsOf 返回空。 // - // 「选择设备」页当前上架三条:AI耳机(恒玄)、AI手机支架(EaiRec)、AI车载香薰(EaiCar)。 + // 「选择设备」页当前上架两条:AI耳机(恒玄)、AI车载香薰(EaiCar)。 + // AI手机支架(EaiRec)2026-09-26 暂时下架,定义在 [hidden] 里。 // 下架某条 = 把它挪回 [hidden]。 static const List all = [ DeviceCategory( @@ -85,19 +86,6 @@ class DeviceCategories { // deviceTypes 已失效(见上),耳机改由名字圈定 nameKeywords: ['echo-one', 'deepvoice', 'deepsound', 'buds', 'ai80', 'a80'], ), - // AI手机支架 = EaiRec(EAIMAR 圆盘)。2026-09-08 上架,取代原先挂在这个 - // 品类下、已停售的EaiRec Echomeet 支架 —— 所以沿用 phoneHolder 这个 id: - // AI 页的默认功能编排(会议/现场录音/通话录音)本来就是按它配的,换 id 要一起改。 - // ⚠️ 蓝牙链路还没接,点击不进扫描页(见 device_category_view._openCategory)。 - DeviceCategory( - id: phoneHolder, - title: 'catPhoneHolder', - subtitle: 'catPhoneHolderDesc', - icon: Icons.stay_current_portrait, - gradient: [Color(0xFF42A5F5), Color(0xFF1E88E5)], - imageAsset: '${DeviceImages.dir}EaiRec.png', - nameKeywords: ['echomeet', 'eairec', 'eaimar', '支架', 'holder', 'stand'], - ), // AI车载香薰 = EaiCar(广播名,旧名 Smartcar 已于 2026-09-15 停止接纳)。 DeviceCategory( id: carAroma, @@ -115,8 +103,22 @@ class DeviceCategories { /// 只是不展示,定义都留着:AI 页的默认功能编排([AgentModules.defaultsByCategory]) /// 和主图映射还按 id 引用它们,老用户存下来的数据也要能查得到, /// 所以 [byId] 仍然会在这里查。上架时把条目挪回 [all] 就行。 - // 注:phoneHolder 已于 2026-09-08 挪到 [all] 上架(产品换成 EaiRec)。 + // 注:phoneHolder 2026-09-08 上架(产品换成 EaiRec),2026-09-26 又暂时下架: + // 「选择设备」页不再出现,但已连过的支架照常回连、导入录音,默认编排也照旧按这个 id 走。 static const List hidden = [ + // AI手机支架 = EaiRec(EAIMAR 圆盘)。2026-09-08 上架,取代原先挂在这个 + // 品类下、已停售的EaiRec Echomeet 支架 —— 所以沿用 phoneHolder 这个 id: + // AI 页的默认功能编排(会议/现场录音/通话录音)本来就是按它配的,换 id 要一起改。 + // ⚠️ 蓝牙链路还没接,点击不进扫描页(见 device_category_view._openCategory)。 + DeviceCategory( + id: phoneHolder, + title: 'catPhoneHolder', + subtitle: 'catPhoneHolderDesc', + icon: Icons.stay_current_portrait, + gradient: [Color(0xFF42A5F5), Color(0xFF1E88E5)], + imageAsset: '${DeviceImages.dir}EaiRec.png', + nameKeywords: ['echomeet', 'eairec', 'eaimar', '支架', 'holder', 'stand'], + ), DeviceCategory( id: noteCard, title: 'catNoteCard', diff --git a/apps/client/pubspec.yaml b/apps/client/pubspec.yaml index 9e41af06..ae14290a 100644 --- a/apps/client/pubspec.yaml +++ b/apps/client/pubspec.yaml @@ -1,7 +1,7 @@ name: eaimar description: "Eaimar - AI Voice Assistant." publish_to: "none" -version: 1.0.2+21 +version: 1.0.2+23 environment: sdk: ">=3.3.0 <4.0.0"