n20-common-lib 2.13.2 → 2.13.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -77,7 +77,7 @@ export async function getSign(p1, p2, p3) {
|
|
|
77
77
|
if (!signType || !CaMap[signType]) {
|
|
78
78
|
throw new Error('请设置签名服务公司sessionStorage.signType')
|
|
79
79
|
}
|
|
80
|
-
if (window.
|
|
80
|
+
if (window.NetSignVersion === 'signV3') {
|
|
81
81
|
return await disposeSign(CaMap['signV3'], p1, p2, p3)
|
|
82
82
|
} else {
|
|
83
83
|
return await disposeSign(CaMap[signType], p1, p2, p3)
|
|
@@ -95,7 +95,7 @@ export function getCert(dn) {
|
|
|
95
95
|
return new Promise((resolve, reject) => {
|
|
96
96
|
if (signType === 'inetSign' /* 信安CA */) {
|
|
97
97
|
// 是否使用3.0版本sdk (默认使用2.0版本)
|
|
98
|
-
if (window.
|
|
98
|
+
if (window.NetSignVersion === 'signV3') {
|
|
99
99
|
importG('inetSign', () => import(/*webpackChunkName: "inetSign"*/ './signV3/sign.js')).then(
|
|
100
100
|
({ getCertInfo }) => {
|
|
101
101
|
getCertInfo(dn).then((res) => {
|