|
|
@@ -425,16 +425,17 @@ async function _againObuIssueCheck() { |
|
|
|
|
|
|
|
// 重新激活 |
|
|
|
|
|
|
|
async function _getAgainObuMac(randNum, callback) { |
|
|
|
console.log("获取随机数", randNum) |
|
|
|
async function _getAgainObuMac(cmdRandNum, callback) { |
|
|
|
console.log("获取随机数", cmdRandNum) |
|
|
|
console.log(activeCode) |
|
|
|
let params = { |
|
|
|
// Flag: '0001', |
|
|
|
// ContractSN: activeCode.serialNumber, |
|
|
|
// Random: randNum |
|
|
|
cardId: activeCode.cardId, |
|
|
|
obuId: activeCode.obuId, |
|
|
|
vehiclePlate: activeCode.vehiclePlate, |
|
|
|
vehiclePlateColor: activeCode.vehiclePlateColor, |
|
|
|
cardId: activeCode.faceCardNum, |
|
|
|
obuId: activeCode.serialNumber, |
|
|
|
vehiclePlate: activeCode.cardPlateNumber, |
|
|
|
vehiclePlateColor: activeCode.cardPlateColor, |
|
|
|
vehicleType: activeCode.cardVehicleType, |
|
|
|
random: cmdRandNum |
|
|
|
} |
|
|
@@ -443,7 +444,8 @@ async function _getAgainObuMac(randNum, callback) { |
|
|
|
console.log(resData); |
|
|
|
const { |
|
|
|
code, |
|
|
|
data |
|
|
|
data, |
|
|
|
message, |
|
|
|
} = resData; |
|
|
|
|
|
|
|
if (code == 0) { |
|
|
@@ -451,6 +453,7 @@ async function _getAgainObuMac(randNum, callback) { |
|
|
|
DevResult.data = data.APDU; |
|
|
|
} else { |
|
|
|
DevResult.code = 3; |
|
|
|
DevResult.msg = message; |
|
|
|
} |
|
|
|
typeof callback === 'function' && callback(DevResult) |
|
|
|
} |