n20-common-lib 2.10.6 → 2.10.7
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
|
@@ -87,10 +87,10 @@ export async function getSign(plain, dn) {
|
|
|
87
87
|
await new Promise((resolve, reject) => {
|
|
88
88
|
for (let i = 0; i < r_retVal.length; i++) {
|
|
89
89
|
const val = r_retVal[i].retVal
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
(s) => {
|
|
90
|
+
|
|
91
|
+
if (window.env.VUE_APP_NetSign_TYPE === 'DN') {
|
|
92
|
+
//新版本,比较DN
|
|
93
|
+
window.SOF_GetCertInfo(val, 33, (s) => {
|
|
94
94
|
if (s.retVal) {
|
|
95
95
|
s_retVal.push({ certId: r_retVal[i].certId, retVal: s.retVal })
|
|
96
96
|
resolve()
|
|
@@ -99,8 +99,24 @@ export async function getSign(plain, dn) {
|
|
|
99
99
|
Message.error(errMsg)
|
|
100
100
|
reject(errMsg)
|
|
101
101
|
}
|
|
102
|
-
}
|
|
103
|
-
|
|
102
|
+
})
|
|
103
|
+
} else {
|
|
104
|
+
//原始版本,比较SN
|
|
105
|
+
window.SOF_GetCertInfoByOid(
|
|
106
|
+
val,
|
|
107
|
+
process.env.VUE_APP_NetSign_ARG || window.VUE_APP_NetSign_ARG || '1.2.156.112562.2.1.1.23',
|
|
108
|
+
(s) => {
|
|
109
|
+
if (s.retVal) {
|
|
110
|
+
s_retVal.push({ certId: r_retVal[i].certId, retVal: s.retVal })
|
|
111
|
+
resolve()
|
|
112
|
+
} else {
|
|
113
|
+
errMsg = '证书信息获取失败!'
|
|
114
|
+
Message.error(errMsg)
|
|
115
|
+
reject(errMsg)
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
)
|
|
119
|
+
}
|
|
104
120
|
}
|
|
105
121
|
})
|
|
106
122
|
|