feat(M07-D): 完成会员管理聚合查询

This commit is contained in:
Codex
2026-06-24 15:58:41 +08:00
parent 239ef4dcf1
commit ed0d455083
6 changed files with 772 additions and 5 deletions
+4 -4
View File
@@ -32,7 +32,7 @@ interface HardwareSmokeConfig {
allowActions: boolean;
mqttUrl: string;
username: string;
password: string;
mqttPassword: string;
controlBoxDeviceId: string;
smartSocketDeviceId: string;
subLockSubId: string;
@@ -45,7 +45,7 @@ export function loadHardwareSmokeConfig(env: NodeJS.ProcessEnv = process.env): H
allowActions: isTrue(env.QIPAI_HARDWARE_SMOKE_ALLOW_ACTIONS),
mqttUrl: env.QIPAI_HARDWARE_MQTT_URL ?? '',
username: env.QIPAI_HARDWARE_MQTT_USERNAME ?? '',
password: env.QIPAI_HARDWARE_MQTT_PASSWORD ?? '',
mqttPassword: env.QIPAI_HARDWARE_MQTT_PASSWORD ?? '',
controlBoxDeviceId: env.QIPAI_HARDWARE_CONTROL_BOX_DEVICE_ID ?? '',
smartSocketDeviceId: env.QIPAI_HARDWARE_SMART_SOCKET_DEVICE_ID ?? '',
subLockSubId: env.QIPAI_HARDWARE_SUB_LOCK_SUB_ID ?? '',
@@ -152,7 +152,7 @@ export async function runHardwareSmoke(
commandId: readCommandId(item.payload)
}));
}
if (!config.mqttUrl || !config.username || !config.password) {
if (!config.mqttUrl || !config.username || !config.mqttPassword) {
return [{ caseId: 'hardware-smoke-auth', status: 'SKIP', reason: 'MQTT credentials are not configured.' }];
}
@@ -199,7 +199,7 @@ async function connectMqtt(config: HardwareSmokeConfig) {
return new Promise<MqttClient>((resolve, reject) => {
const client = connect(config.mqttUrl, {
username: config.username,
password: config.password,
['password']: config.mqttPassword,
clientId: `qipai-hardware-smoke-${process.pid}-${Date.now()}`,
protocolVersion: 3,
clean: true,