修复无法自定义assigneeName&licenseeName的bug
This commit is contained in:
parent
515da020f6
commit
5070b2f58b
|
@ -964,11 +964,11 @@ fIqVyfK6t0eKJqrvp54XFEtJGR+lf3pBfTdcOI6QFEPKGZKoQz8Ck+BC/WBDtbjc
|
|||
}).join('');
|
||||
}
|
||||
|
||||
function buildLicensePartJson(products, licenseId) {
|
||||
function buildLicensePartJson(products, licenseId,licenseInfo) {
|
||||
return JSON.stringify({
|
||||
"licenseId": licenseId,
|
||||
"licenseeName": "reborn",
|
||||
"assigneeName": "reborn",
|
||||
"licenseeName": licenseInfo.licenseeName,
|
||||
"assigneeName": licenseInfo.assigneeName,
|
||||
"assigneeEmail": "",
|
||||
"licenseRestriction": "",
|
||||
"checkConcurrentUse": false,
|
||||
|
@ -997,7 +997,7 @@ fIqVyfK6t0eKJqrvp54XFEtJGR+lf3pBfTdcOI6QFEPKGZKoQz8Ck+BC/WBDtbjc
|
|||
}
|
||||
})
|
||||
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)), {
|
||||
name: "RSASSA-PKCS1-v1_5", hash: "SHA-1",
|
||||
|
|
Loading…
Reference in New Issue