Skip to content

Commit 740d63e

Browse files
committed
fix: issues-电子发票-增值税发票无法显示电子签章 #98
1 parent da5584a commit 740d63e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/ofd/ses_signature_parser.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const decode = function (der, offset) {
6262
const SES_Signature = decodeSES_Signature(der,offset);
6363
const type = SES_Signature.toSign.eseal.esealInfo.picture.type;
6464
const ofdArray = SES_Signature.toSign.eseal.esealInfo.picture.data.byte;
65-
return {ofdArray, 'type': type.toLowerCase(), SES_Signature,'verifyRet':SES_Signature_Verify(SES_Signature)};
65+
return {ofdArray, 'type': typeof type === 'string'?type.toLowerCase():type.str.toLowerCase(), SES_Signature,'verifyRet':SES_Signature_Verify(SES_Signature)};
6666
} catch (e) {
6767
console.log(e)
6868
return {};

0 commit comments

Comments
 (0)