1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
| const configConst = {}
| configConst.setConfig = {
| offlineAccessNum: "access.offlineAccessNum",
| relayTime: "access.relayTime",
| fire: "access.fire",
| fireStatus: "access.fireStatus",
| tamper: "access.tamper",
| uploadToCloud: "access.uploadToCloud",
| language: "base.language",
| password: "base.password",
| screenOff: "base.screenOff",
| screensaver: "base.screensaver",
| backlight: "base.backlight",
| brightness: "base.brightness",
| nirBrightness: "base.nirBrightness",
| volume: "base.volume",
| showIp: "base.showIp",
| showSn: "base.showSn",
| showProgramCode: "base.showProgramCode",
| appMode: "base.appMode",
| similarity: "face.similarity",
| livenessOff: "face.livenessOff",
| livenessVal: "face.livenessVal",
| showNir: "face.showNir",
| stranger: "face.stranger",
| voiceMode: "face.voiceMode",
| voiceModeDate: "face.voiceModeDate",
| recheck: "face.recheck",
| addr: "mqtt.addr",
| mqttusername: "mqtt.username",
| mqttpassword: "mqtt.password",
| mqttqos: "mqtt.qos",
| mqttprefix: "mqtt.prefix",
| onlinecheck: "mqtt.onlinecheck",
| timeout: "mqtt.timeout",
| willTopic: "mqtt.willTopic",
| type: "net.type",
| ssid: "net.ssid",
| psk: "net.psk",
| dhcp: "net.dhcp",
| ip: "net.ip",
| gateway: "net.gateway",
| mask: "net.mask",
| dns: "net.dns",
| mac: "net.mac",
| ntp: "ntp.ntp",
| server: "ntp.server",
| gmt: "ntp.gmt",
| hour: "ntp.hour",
| timeZone: "ntp.timeZone",
| heart_en: "sys.heart_en",//心跳1开 0 关
| heart_time: "sys.heart_time",
| nfc: "sys.nfc",//1开 0 关 刷卡开关
| pwd: "sys.pwd",//1开 0 关 密码开门开关
| strangerImage: "sys.strangerImage",//1开 0 关 陌生人保存图片开关
| accessImageType: "sys.accessImageType",//1人脸 0 全景 通行图片类型
| nfcIdentityCardEnable: "sys.nfcIdentityCardEnable",
| scanInterval: "sys.scanInterval",
| time: "sys.time",
| weComMqttAddr: "sys.weComMqttAddr",
| }
| //根据 key 获取 setCofig中的 value
| configConst.getValueByKey = function (key) {
| return this.setConfig[key] || undefined;
| }
|
| export default configConst
|
|