BUILD: 2026-01-11T00:47:14Z

Fitness App 管理后台

正在初始化资源,请稍候...

检测趋势分析 ({{ getCategoryName(currentReportDetail?.ai_category_id) }})

数据加载中...
共找到 {{ trendData.count }} 条历史记录 (显示最近 {{ trendData.trend.length }} 条)

编辑字段属性

分组详情: {{ currentGroupDetail.label }}

选择要添加的字段

所有支持的字段都已添加到列表
{{ f.desc }} ({{ f.key }})

编辑会员信息

安全设置

管理员登录

{{ loginError }}
{{ n8nOnlineLabel }} {{ n8nConnectLabel }}
AI 分析类别配置 大模型母版 字段字典管理 字段分组管理 硬件模块管理 报告模板管理 传统检测报告管理 用户AI方案管理 会员管理 设备列表 款式管理 设置工作流
选择款式 查询
加载中...
Schema 版本:v{{ categoryRecoSchemaVersion }}
创建新类别时将克隆此母版生成独立工作流
大模型配置
建议填写 Base URL(如 https://api.siliconflow.cn/v1);如果误填到 /chat/completions,后端会自动去掉该后缀
已配置 未配置
该秘钥仅用于渲染到工作流中调用大模型;管理端不回显明文
用于创建/激活工作流;如果未包含 /api/v1 后端会自动补齐
用于触发工作流执行(/webhook/...);留空则尝试从管理API地址推导
已配置 未配置 清空本类别Key
用于创建/激活工作流(请求头 X-N8N-API-KEY);优先使用本类别配置,未填则回退到后端环境变量
素材目录(可浏览/可手动放文件):{{ animationDirUrl }}
关联配置
生成报告时默认使用的排版模板

所选模板关联参数预览

测试生成工作流 共 {{ selectedTemplateDisplayData.fields.length }} 个参数
测试生成成功
Workflow ID: {{ testResult.workflow_id }}
Webhook Path: {{ testResult.webhook_path }}
(此为临时测试工作流,不会保存到类别配置中)
关联硬件模块: {{ selectedTemplateDisplayData.hardwareName }}
发送给 n8n 的报告指标
使用全部指标(基于所选模板)
required_field_keys:用于生成 report_data_list;未配置会导致 /internal/ai/context 返回 400
该模板未关联硬件模块或无参数定义
仪器设备关联

关联对应款式的内容

{{ styleDetails.styleName }} (ID: {{ styleDetails.styleId }})
模板: {{ template.templateName }} ({{ template.protocol }})

工作流模拟数据预览 (Payload Simulation)

当前测试用户: {{ testUser.username }} 选择测试用户
{{ testUser.id }} {{ testUser.display_name || testUser.username }} {{ testUser.gender === 1 ? '男' : (testUser.gender === 0 ? '女' : '未知') }} {{ testUser.age || '-' }} {{ testUser.height_cm }} cm {{ testUser.weight_kg }} kg
// 即将发送给 n8n Webhook 的数据结构预览
{{ simulationPayloadJson }}
保存到数据库 (Save to DB) 真实 AI 分析 (Get AI Report)

AI 分析报告结果 (Database Record)

{{ analysisResult.ai_analysis_result }}
等待分析结果... (Polling DB)
取消 重建 n8n 工作流 保存

请选择外部系统(如 AI 推荐系统)定义的仪器款式。

{{ styleError }}
暂无款式数据或无法连接到外部系统
{{ opt.styleName }}
ID: {{ opt.styleId }}
或手动输入ID:
导入 JSON 文件
请直接粘贴从 n8n 导出的完整 JSON

提示:

  • 删除分组不会删除字段,只会将相关字段的“分组”属性置空。
  • 要添加新分组,请在“字段字典管理”中编辑字段时输入新的分组名称。
加载中...
Schema 版本:v{{ paramRecoSchemaVersion }}
5678 是 n8n 本体端口;/n8n/login-sync 走控制服务端口(通常 5679)
n8n 本体端口固定为 5678;控制服务端口请在“编辑工作流配置”里设置(默认 5679)
查询 关闭
Schema 建议包含:params[](code/name/type/min/max/unit/functionName)与 output_contract(commands 结构约束)。
共 {{ (detectCategories && detectCategories.length) ? detectCategories.length : 0 }} 个检测类别
{{ cat.name }}
Code: {{ cat.code }}
{{ cat.description || '-' }}
选择并开始分析
{{ currentReportDetail.device_sn }} {{ new Date(currentReportDetail.measured_at).toLocaleString() }} {{ currentReportDetail.user_id }} {{ new Date(currentReportDetail.created_at).toLocaleString() }}
{{ getCategoryName(currentReportDetail.ai_category_id) }}
检测数据
当前帧结构预览 (示例: 阻抗模式切换 0xB0)
{{ getHardwarePreview() }}
帧结构 (Frame)
对应 set_mode 命令的参数值 (Byte 3)
双频模式下测量频率由设备固定 (20kHz & 100kHz),此处配置无效。 选择该模式下设备支持的测量频率 (Byte 4)
自动计算: ~ (帧头+...校验位前一位) + 1
特殊指令 停止当前测试: 0x00 (清除历史数据)
阻抗模式切换 + 添加指令
解析包类型说明:此处定义设备上报数据的不同协议格式。例如 D0 为八电极完整报告,包含体脂、肌肉等多段数据; D1 为四电极简版报告; F0 为实时过程数据。 请根据设备实际输出选择对应的解析规则进行配置。
加载默认 BMH05108 配置
分包组装策略 (Assembler) {{ hardwareParsers[activeParserType].assembler.strategy }} 字段映射定义 (Fields)
添加字段
数据类型说明: u8 1字节无符号整数 (0~255) u16le 2字节无符号整数 (小端序) i16le 2字节有符号整数 (小端序)
请选择要配置的解析包类型
错误码定义 (Errors) 添加错误码 频率映射 (Mappings)
定义频率数值与协议命令字(Hex)的对应关系。
例如:值 1 代表 5kHz。
+ 添加映射

应答格式配置 (Response Configuration)

应答数据模拟 (Response Simulation)

共 {{ totalAlgoParams }} 个参数
八电极模式应答 (27 Bytes)
四电极模式应答 (13 Bytes)
取消 保存
{{ currentSubject.display_name }} {{ currentSubject.gender === 1 ? '男' : (currentSubject.gender === 2 ? '女' : '未知') }} {{ currentSubject.age }} 岁 {{ currentSubject.phone }} {{ currentSubject.id }} {{ new Date(currentSubject.created_at).toLocaleString() }} 问卷资料 (Profile)
{{ val }}
暂无问卷资料
AI 使用方案记录 订单记录 数据历史
内部算法 (Internal) 扩展算法 (External)
扩展算法模式
无需配置硬件指令交互,通过外部接口关联算法
(External Algorithm Mode: No hardware command configuration needed)
必发指令(B0 模式切换)
{{ templateHardwareParams.required_first_hex || '—' }}
暂无指令配置
指令列表 (Command List)
应答格式配置 (Response Configuration) - 点击行预览
应答数据模拟 (Response Simulation)
八电极模式应答 (27 Bytes)
{{ templateHardwareParams.sim_header }} 1B B1 {{ templateHardwareParams.sim_frequency }} kHz {{ templateHardwareParams.sim_status }} 0x01 原始阻抗 {{ templateHardwareParams.sim_r_arm }} Ω {{ templateHardwareParams.sim_l_arm }} Ω {{ templateHardwareParams.sim_trunk }} Ω {{ templateHardwareParams.sim_r_leg }} Ω {{ templateHardwareParams.sim_l_leg }} Ω
四电极模式应答 (13 Bytes)
{{ templateHardwareParams.sim_header }} 0D B1 {{ templateHardwareParams.sim_frequency }} kHz {{ templateHardwareParams.sim_status }} 0x01 原始阻抗 {{ templateHardwareParams.sim_impedance }} Ω {{ templateHardwareParams.sim_phase }} °
内部报告 (Internal) 外部报告 (External)
选择用户 (Select User) 已选择: {{ algoUser.name }} (ID: {{ algoUser.id }}) 自动填充下方信息
内部协议选择:
算法输入模拟 (Algorithm Input Simulation)
提取阻抗数据 (Auto-extracted from Response Configuration):
20kHz: R:{{templateHardwareParams.algo_imp_20k.r_arm}} L:{{templateHardwareParams.algo_imp_20k.l_arm}} Tr:{{templateHardwareParams.algo_imp_20k.trunk}} RL:{{templateHardwareParams.algo_imp_20k.r_leg}} LL:{{templateHardwareParams.algo_imp_20k.l_leg}}
100kHz: R:{{templateHardwareParams.algo_imp_100k.r_arm}} L:{{templateHardwareParams.algo_imp_100k.l_arm}} Tr:{{templateHardwareParams.algo_imp_100k.trunk}} RL:{{templateHardwareParams.algo_imp_100k.r_leg}} LL:{{templateHardwareParams.algo_imp_100k.l_leg}}
50kHz Impedance: {{ templateHardwareParams.algo_imp_50k }} Ω
算法输出模拟 (Algorithm Output Simulation) (v2) 共 {{ totalAlgoParams }} 个参数
生成应答 (Generate Response) 模拟硬件反馈的5包数据 (Simulate 5-packet Hardware Response)
{{ pkt.title }}
原始报文 (Raw Hex):
数据结构 (JSON Content):
模拟报告数据预览 (Simulated Report Data Preview)
扁平化数据结构 (Flat Data Structure) - 此格式将直接存储,方便AI直接调用 (This format is stored for direct AI access)
任务已创建 分析中... 分析完成
AI 分析 真实 AI 分析 保存到数据库 (Save to DB)
暂无数据,请点击生成应答
外部报告模式 · n8n 对接
待发送 接收中… 接收错误 接收完成
发送到 n8n
n8n 返回内容
{{ n8nResult.data.analysis }}
{{ n8nResult.guide }}
请选择硬件模块以查看指令
定义报告生成的排版结构。