|
@ -1617,24 +1617,27 @@ Page({ |
|
|
console.log(res, '获取索引') |
|
|
console.log(res, '获取索引') |
|
|
if (res.success) { |
|
|
if (res.success) { |
|
|
var pwdNo = res.data.index.toString(16) |
|
|
var pwdNo = res.data.index.toString(16) |
|
|
|
|
|
// var pwdNo = res.data.index
|
|
|
var passwordIndex = res.data.index |
|
|
var passwordIndex = res.data.index |
|
|
if (pwdNo < 9) { |
|
|
if (pwdNo < 9) { |
|
|
pwdNo = '0' + pwdNo |
|
|
pwdNo = '0' + pwdNo |
|
|
} else { |
|
|
} else { |
|
|
pwdNo = pwdNo |
|
|
pwdNo = pwdNo |
|
|
} |
|
|
} |
|
|
|
|
|
console.log("1626", pwdNo); |
|
|
ICINLocker.getUserSignKey(cgInfo.lockerId, cgInfo.superId, personInfo.userId, cgInfo.superId, cgInfo.authKey, '01', (callback) => { |
|
|
ICINLocker.getUserSignKey(cgInfo.lockerId, cgInfo.superId, personInfo.userId, cgInfo.superId, cgInfo.authKey, '01', (callback) => { |
|
|
console.log(callback) |
|
|
|
|
|
|
|
|
console.log("1628",callback) |
|
|
if (callback.status == '00') { |
|
|
if (callback.status == '00') { |
|
|
var userSignKey = callback.userSignKey |
|
|
var userSignKey = callback.userSignKey |
|
|
ICINLocker.getCommonKey(cgInfo.lockerId, personInfo.userId, personInfo.userId, userSignKey, (callback) => { |
|
|
ICINLocker.getCommonKey(cgInfo.lockerId, personInfo.userId, personInfo.userId, userSignKey, (callback) => { |
|
|
|
|
|
console.log("1632", callback); |
|
|
if (callback.status == '00') { |
|
|
if (callback.status == '00') { |
|
|
console.log(callback, 'commonKey') |
|
|
console.log(callback, 'commonKey') |
|
|
var commonKey = callback.commonKey |
|
|
var commonKey = callback.commonKey |
|
|
var startTime = passwordLi.startTime.toString(16).toUpperCase() |
|
|
var startTime = passwordLi.startTime.toString(16).toUpperCase() |
|
|
var endTime = passwordLi.endTime.toString(16).toUpperCase() |
|
|
var endTime = passwordLi.endTime.toString(16).toUpperCase() |
|
|
ICINLocker.handlePwd(deviceinfo.deviceNum, cgInfo.superId, personInfo.userId, info.password, pwdNo, cgInfo.superId, cgInfo.authKey, '', startTime, endTime, 0, commonKey, (callback) => { |
|
|
ICINLocker.handlePwd(deviceinfo.deviceNum, cgInfo.superId, personInfo.userId, info.password, pwdNo, cgInfo.superId, cgInfo.authKey, '', startTime, endTime, 0, commonKey, (callback) => { |
|
|
console.log(callback) |
|
|
|
|
|
|
|
|
console.log("1639",callback) |
|
|
if (callback.status == '00') { |
|
|
if (callback.status == '00') { |
|
|
var datacom = { |
|
|
var datacom = { |
|
|
code: "zg/bleSendVoucherReply", |
|
|
code: "zg/bleSendVoucherReply", |
|
|