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 上放上符号按钮之后,我没有任何动作