script update

This commit is contained in:
Lowly 2024-08-23 14:28:56 +07:00 committed by GitHub
parent db5572504c
commit 24a609fba4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -232,8 +232,8 @@ function genLicenseId() {
}).join(''); }).join('');
} }
function buildLicensePartJson(productCode, licenseId,twoYears) { function buildLicensePartJson(productCode, licenseId, twoYears) {
let formattedDateTwoYears = '2099-08-01'; let formattedDateTwoYears = '9999-01-01';
if (twoYears) { if (twoYears) {
let futureDateTwoYears = new Date(); let futureDateTwoYears = new Date();
futureDateTwoYears.setFullYear(futureDateTwoYears.getFullYear() + 2); futureDateTwoYears.setFullYear(futureDateTwoYears.getFullYear() + 2);
@ -245,8 +245,8 @@ function buildLicensePartJson(productCode, licenseId,twoYears) {
return JSON.stringify({ return JSON.stringify({
"licenseId": licenseId, "licenseId": licenseId,
"licenseeName": "reborn", "licenseeName": "loch",
"assigneeName": "reborn", "assigneeName": "pidor",
"assigneeEmail": "", "assigneeEmail": "",
"licenseRestriction": "", "licenseRestriction": "",
"checkConcurrentUse": false, "checkConcurrentUse": false,
@ -257,7 +257,7 @@ function buildLicensePartJson(productCode, licenseId,twoYears) {
}], }],
"metadata": "0120230102PPAA013009", "metadata": "0120230102PPAA013009",
"hash": "41472961/0:1563609451", "hash": "41472961/0:1563609451",
"gracePeriodDays": 7, "gracePeriodDays": 900,
"autoProlongated": true, "autoProlongated": true,
"isAutoProlongated": true "isAutoProlongated": true
}); });