diff --git a/src/config/supportedApps.js b/src/config/supportedApps.js index 7815d5c..ce76d56 100644 --- a/src/config/supportedApps.js +++ b/src/config/supportedApps.js @@ -3,7 +3,7 @@ */ exports.pickParams = function (appId, systemParams) { // if (appId === 'coc') { - const appParams = ['biosSerialNum', 'osId', 'diskSerialNum', 'nicMac']; + const appParams = ['biosSerialNum', 'osId', 'mainboardSerialNum', 'diskSerialNum', 'nicMac']; const requiredParams = 2; // } diff --git a/src/lib/licenseUtil.js b/src/lib/licenseUtil.js index 33ed26d..4247dc5 100644 --- a/src/lib/licenseUtil.js +++ b/src/lib/licenseUtil.js @@ -272,7 +272,9 @@ exports.check = async function (db, productId, systemParams, activationId, modul let activatedParamObj = {} for (elm of activatedParams) { - activatedParamObj[elm.paramId] = elm.paramValue; + if (elm.flag & 1) { + activatedParamObj[elm.paramId] = elm.paramValue; + } } return {