|
|
@ -1619,7 +1619,7 @@ Page({ |
|
|
|
var pwdNo = res.data.index.toString(16) |
|
|
|
// var pwdNo = res.data.index
|
|
|
|
var passwordIndex = res.data.index |
|
|
|
if (pwdNo.length < 9) { |
|
|
|
if (pwdNo.length < 2) { |
|
|
|
pwdNo = '0' + pwdNo |
|
|
|
} else { |
|
|
|
pwdNo = pwdNo |
|
|
@ -4297,7 +4297,7 @@ Page({ |
|
|
|
} |
|
|
|
console.log(dataPasswod); |
|
|
|
WXAPI.sendCommand(dataPasswod).then(res => { |
|
|
|
console.log(res); |
|
|
|
console.log("123123",res); |
|
|
|
if (res.success) { |
|
|
|
fingerprintIndex = res.data.index |
|
|
|
serialNumber = res.data.serialNumber |
|
|
@ -4335,6 +4335,7 @@ Page({ |
|
|
|
var startTime = new Date(Number(moment(that.data.starttime).format('x'))) |
|
|
|
var endTime = new Date(Number(moment(that.data.endtime).format('x'))) |
|
|
|
// fingerprintIndex = Math.floor(Math.random() * 100)
|
|
|
|
console.log(lockDevice.name, basecode, fingerprintIndex, startTime, endTime); |
|
|
|
var bytes = plugin.addFingerprint(lockDevice.name, basecode, fingerprintIndex, startTime, endTime) |
|
|
|
console.debug('bytes', bytes) |
|
|
|
that.sendBytes(bytes) |
|
|
@ -4415,6 +4416,7 @@ Page({ |
|
|
|
} |
|
|
|
WXAPI.getCertificates(data).then(res => { |
|
|
|
var dataOne = util.zlib_unzip(res.data) |
|
|
|
console.log("123123",dataOne); |
|
|
|
if (res.success) { |
|
|
|
dataOne.map(li => { |
|
|
|
li['pzname'] = JSON.parse(li.content).pzname |
|
|
|