feat: iOS 审核阉割版 - iOS 蓝牙功能屏蔽 + Info.plist 删蓝牙权限 + AI 提示词去医疗化(应对 App Store 1.4.1)

- iOS 蓝牙 UI 入口用 Platform.isIOS 屏蔽(抽屉/设置页/记数据卡片/AI 嵌入链接)
- Info.plist 删除 NSBluetoothAlwaysUsageDescription 和 NSBluetoothPeripheralUsageDescription
- AI 提示词重写:只描述客观事实和综合信息,不给医疗建议,不做关联性分析/推测
- 所有"专家/教练/预问诊/预解读"角色改为"记录/整理/结构化提取助手"
- 去掉基于疾病(冠心病/糖尿病等)的饮食运动建议
- 保留正常值参考范围用于客观描述"超出范围",不作诊断
This commit is contained in:
MingNian
2026-07-21 11:57:54 +08:00
parent 28f704c98e
commit 5cd3584ae9
8 changed files with 122 additions and 104 deletions

View File

@@ -1194,7 +1194,9 @@ class ChatMessagesView extends ConsumerWidget {
pushRoute(ref, 'reports');
break;
case 'device':
pushRoute(ref, 'devices');
if (!Platform.isIOS) {
pushRoute(ref, 'devices');
}
break;
default:
if (uri.host.isNotEmpty) pushRoute(ref, uri.host);
@@ -2148,7 +2150,12 @@ final _agentActions = <ActiveAgent, List<_AgentAction>>{
};
extension _AgentActionsExt on ActiveAgent {
List<_AgentAction> get actions =>
_agentActions[this] ??
[const _AgentAction(label: '开始对话', icon: Icons.chat_outlined)];
List<_AgentAction> get actions {
final all = _agentActions[this] ??
[const _AgentAction(label: '开始对话', icon: Icons.chat_outlined)];
if (Platform.isIOS) {
return all.where((a) => a.route != 'devices').toList();
}
return all;
}
}