[fix] When regenerating license file during the check for updates, include only important system parameters which were picked during last activation
[impl] Add mainboard serial as third most important parameter
This commit is contained in:
parent
2a0da0dc51
commit
dc8ffb9050
@ -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;
|
||||
// }
|
||||
|
||||
|
||||
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user