mirror of
https://github.com/L0w1y/JBKF.git
synced 2024-11-16 15:21:36 +00:00
script update
This commit is contained in:
parent
db5572504c
commit
24a609fba4
|
@ -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
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue