mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 14:31:12 +08:00
1 parent
725f1315fd
commit
c1e28bb1a3
2 files changed
+35
-9
No files matched your search
@@ -1557,6 +1557,8 @@ function renderSignatures() {
|
||||
appendSignatureCheck(row, "匹配", signature.sealMatchOK);
|
||||
}
|
||||
appendSignatureCheck(row, "证书", signature.certOK);
|
||||
appendSignaturePolicy(row, "时效", signature.certTimeChecked, signature.certTimeOK);
|
||||
appendSignaturePolicy(row, "信任", signature.certTrustChecked, signature.certTrustOK);
|
||||
appendSignatureLine(row, "保护", signatureReferenceText(signature), signatureReferenceStatus(signature));
|
||||
appendSignatureLine(row, "序号", signature.signSerial);
|
||||
appendSignatureLine(row, "算法", signature.signatureMethod);
|
||||
@@ -1676,6 +1678,13 @@ function appendSignatureCheck(row, label, ok) {
|
||||
appendSignatureLine(row, label, ok ? "通过" : "失败", ok ? "ok" : "fail");
|
||||
}
|
||||
|
||||
function appendSignaturePolicy(row, label, checked, ok) {
|
||||
if (!checked) {
|
||||
return;
|
||||
}
|
||||
appendSignatureCheck(row, label, ok);
|
||||
}
|
||||
|
||||
async function focusSignatureStamp(stamp) {
|
||||
const pageIndex = (stamp.page || 0) - 1;
|
||||
if (!state.doc || pageIndex < 0) {
|
||||
|
||||
Reference in new issue
Block a user