修复无法自定义assigneeName&licenseeName的bug
This commit is contained in:
parent
515da020f6
commit
5070b2f58b
|
@ -964,11 +964,11 @@ fIqVyfK6t0eKJqrvp54XFEtJGR+lf3pBfTdcOI6QFEPKGZKoQz8Ck+BC/WBDtbjc
|
||||||
}).join('');
|
}).join('');
|
||||||
}
|
}
|
||||||
|
|
||||||
function buildLicensePartJson(products, licenseId) {
|
function buildLicensePartJson(products, licenseId,licenseInfo) {
|
||||||
return JSON.stringify({
|
return JSON.stringify({
|
||||||
"licenseId": licenseId,
|
"licenseId": licenseId,
|
||||||
"licenseeName": "reborn",
|
"licenseeName": licenseInfo.licenseeName,
|
||||||
"assigneeName": "reborn",
|
"assigneeName": licenseInfo.assigneeName,
|
||||||
"assigneeEmail": "",
|
"assigneeEmail": "",
|
||||||
"licenseRestriction": "",
|
"licenseRestriction": "",
|
||||||
"checkConcurrentUse": false,
|
"checkConcurrentUse": false,
|
||||||
|
@ -997,7 +997,7 @@ fIqVyfK6t0eKJqrvp54XFEtJGR+lf3pBfTdcOI6QFEPKGZKoQz8Ck+BC/WBDtbjc
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
let licenseId = genLicenseId()
|
let licenseId = genLicenseId()
|
||||||
let licensePartJson = buildLicensePartJson(products, licenseId)
|
let licensePartJson = buildLicensePartJson(products, licenseId,licenseInfo)
|
||||||
|
|
||||||
let privateKey = await window.crypto.subtle.importKey("pkcs8", base64ToArrayBuffer(pem2base64(pemEncodedKey)), {
|
let privateKey = await window.crypto.subtle.importKey("pkcs8", base64ToArrayBuffer(pem2base64(pemEncodedKey)), {
|
||||||
name: "RSASSA-PKCS1-v1_5", hash: "SHA-1",
|
name: "RSASSA-PKCS1-v1_5", hash: "SHA-1",
|
||||||
|
|
Loading…
Reference in New Issue