n20-common-lib 1.3.71 → 1.3.73

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.
@@ -2,7 +2,8 @@ export async function getSign(p1, p2, p3) {
2
2
  let signType = window.sessionStorage.getItem('signType')
3
3
  let CaMap = {
4
4
  inetSign: '信安CA',
5
- bjcaSign: '北京CA'
5
+ bjcaSign: '北京CA',
6
+ ItrusSign: '天威CA'
6
7
  }
7
8
  if (!signType || !CaMap[signType]) {
8
9
  console.error('请设置签名服务公司sessionStorage.signType,公司字段映射:', CaMap)
@@ -20,6 +21,11 @@ export async function getSign(p1, p2, p3) {
20
21
  resolve(sign)
21
22
  })
22
23
  })
24
+ } else if (signType === 'ItrusSign' /* 天威CA */) {
25
+ import('./Itrus/index.js').then(({ getSign }) => {
26
+ const ItrusSign = getSign(p1, p2, p3)
27
+ resolve(ItrusSign)
28
+ })
23
29
  }
24
30
  })
25
31
  return por