【发布时间】:2020-12-05 16:46:49
【问题描述】:
openNCALayerChooseKeyDialog = (callback) => {
this.callback = callback;
const base64 = this.b64EncodeUnicode(callback);
console.log('openNCALayerChooseKeyDialog');
this.setMissedHeartbeatsLimitToMax();
const object = {
"module": "kz.gov.pki.knca.commonUtils",
"method": "createCMSSignatureFromBase64",
"args": ["PKCS12", "SIGNATURE", base64, false]
};
//getActiveTokens
// getKeyInfo
// signXml
// createCMSSignatureFromFile
// showFileChooser
// createCMSSignatureFromBase64
this.webSocket.send(JSON.stringify(object));
};
ncalayer.openNCALayerChooseKeyDialog(({errorCode, result}) => {
console.log('ncalayer');
console.log(errorCode, result);
if (errorCode !== undefined && result !== undefined) {
console.log('errorCode');
ncalayer.setStorePath(result);
console.log(errorCode);
if (ncalayer.password !== null) {
console.log('getXMLDocument');
this.getXMLDocument();
} else {
console.log('showSetPasswordModal');
this.showSetPasswordModal();
}
}
});
你好。我无法理解为什么我的函数没有返回任何错误 我只是赶上而不是打电话给 ncalayer 并检查密码,在我的 ncalayer 上放上签名按钮后,我旁边没有任何动作
【问题讨论】: