egg plugin for zmxy
$ npm i egg-zmxy --save
// {app_root}/config/plugin.js
exports.zmxy = {
enable: true,
package: 'egg-zmxy',
};
// {app_root}/config/config.default.js
exports.zmxy = {
appId: '',
appPrivateKeyPath: '',
zmxyPublicKeyPath: ''
};
see config/config.default.js for more detail.
await this.app.zmxy.verifyIvs({
name: '张三',
cert_no: '532926200804058748'
}).then(({ result }) => {
console.log(result)
}).catch((err) => {
console.error(err)
})
Please open an issue here.